Commit 95b18bf2 authored by litaolemo's avatar litaolemo

update

parent 73e7add8
......@@ -1494,7 +1494,7 @@ headers = {
'X-GM-Rpc-Method': 'rims/search/cpt_service',
}
redis_old_gaia = redis.StrictRedis.from_url("redis://:XfkMCCdWDIU%ls$h3@172.16.50.159:6379/9", decode_responses=True)
rds = redis.StrictRedis.from_url("redis://:XfkMCCdWDIU%ls$h3@172.16.50.159:6379", decode_responses=True)
for query in query_list:
res = json.dumps(query)
......@@ -1511,5 +1511,9 @@ for query in query_list:
}
# print(data)
response = requests.post('http://172.16.50.10:8170/v1/batch', headers=headers, data=data)
print(response.json())
data = json.dumps(response.json())
time.sleep(1)
key = "meigou_" + city + "_" + query
print(key)
rds.set(key,data)
break
\ No newline at end of file
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