Commit 016a8f69 authored by 张彦钊's avatar 张彦钊

change test file

parent 80a29efb
...@@ -178,7 +178,7 @@ def mysql(device_Android): ...@@ -178,7 +178,7 @@ def mysql(device_Android):
def get_redis(ios): def get_redis(ios):
redis_client = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN6@172.16.40.133:6379') redis_client = redis.StrictRedis.from_url('redis://:ReDis!GmTx*0aN6@172.16.40.133:6379')
diary_recommend_key = "TS:search_recommend_diary_queue:device_id:" + str(ios) diary_recommend_key = "TS:search_recommend_diary_queue:device_id:" + str(ios)
a = redis_client.hgetall(diary_recommend_key)["diary_queue"] a = redis_client.hgetall(diary_recommend_key)("diary_queue")
print(a) print(a)
return a return a
...@@ -189,10 +189,10 @@ if __name__ == '__main__': ...@@ -189,10 +189,10 @@ if __name__ == '__main__':
# a = mysql(device_IOS) # a = mysql(device_IOS)
# # for i in a: # # for i in a:
# # chapter_list = get_chapter(i) # # chapter_list = get_chapter(i)
# ios = "B6712382-69D5-4B12-9810-5F266411C4CF" ios = "B6712382-69D5-4B12-9810-5F266411C4CF"
# d = get_redis(ios) d = get_redis(ios)
b = get_opreaton() b = get_opreaton()
# c = set(d)&set(b) c = set(d)&set(b)
# print(len(c)) print(len(c))
# print(c) print(c)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment