Commit 11c2887b authored by lixiaofang's avatar lixiaofang

add

parent d28db622
...@@ -43,9 +43,9 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False): ...@@ -43,9 +43,9 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False):
# es=ESPerform.get_cli() # es=ESPerform.get_cli()
# ) # )
if es_type == 'topic': # if es_type == 'topic':
auto_click(pk_list) auto_click(pk_list)
auto_reply(pk_list) auto_reply(pk_list)
except: except:
...@@ -169,6 +169,7 @@ def auto_click(pk_list): ...@@ -169,6 +169,7 @@ def auto_click(pk_list):
timer = threading.Timer(sleep_time, fun_timer) timer = threading.Timer(sleep_time, fun_timer)
timer.start() timer.start()
sleep_time = random.randint(300, 540) sleep_time = random.randint(300, 540)
logging.info("----------1-----------") logging.info("----------1-----------")
timer = threading.Timer(10, fun_timer) # 首次启动 timer = threading.Timer(10, fun_timer) # 首次启动
......
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