Commit 70e7b5d6 authored by litaolemo's avatar litaolemo

update

parent 3bdb3f44
......@@ -875,8 +875,8 @@ for city in city_list:
for query in query_list:
try:
# if True:
# if rds.hexists(city,query):
# continue
if rds.hexists(city,query):
continue
data = {
'requests': '[{\"request_id\": null, \"method\": \"doris/search/query_sku\", \"params\": {\"sort_with_submission\": true, \"or_filters\": [], \"sort_params\": { \"in_whitelist\": 1, \"user_city_tag_id\": %s, \"device_id\": \"androidid_ba0799595f555c98\"}, \"sort_type\": 0, \"use_tagv3\": false, \"filters\": {\"tag_ids\": [%s]}, \"offset\": 0, \"query\": \"\", \"is_sort_with_icon\": true, \"user_city_tag_id\": %s, \"size\": 100}, \"environment\": {\"trace_context\": {\"debug\": false, \"sampled\": false, \"trace_id\": \"1abd5ea122024a32827e0a0dd8ad45eb\", \"span_id\": \"0.2\"}, \"l5d_path\": \"/prod/gaia\", \"passport\": null, \"client_info\": {\"log_id\": \"gaia.z1l7e4odb43efc0179047f890fc023ba\", \"span_id\": \"z1l7e4o0ffec82d12944357b60360e80\"}, \"session_id\": \"ifop8w1o4spoe969kxd6yh77wzgtsz3c\"}}]' % (
city_list[city],query_list[query],city_list[city])}
......@@ -886,7 +886,7 @@ for city in city_list:
# response = requests.post('http://doris.paas-develop.env/v1/batch', headers=headers, data=data)
data = json.dumps(response.json())
# print(data)
time.sleep(0.1)
# time.sleep(0.1)
# dict[query] = data
rds.hset(redis_key,query_list[query], data)
......
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