Commit 66365eb1 authored by lixiaofang's avatar lixiaofang

add

parent 133098db
...@@ -45,7 +45,7 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False): ...@@ -45,7 +45,7 @@ def write_to_es(es_type, pk_list, use_batch_query_set=False):
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:
...@@ -109,6 +109,7 @@ def sync_user_similar_score(): ...@@ -109,6 +109,7 @@ def sync_user_similar_score():
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
@shared_task @shared_task
def auto_majia_effect(pk_list): def auto_majia_effect(pk_list):
logging.info("get -----auto_majia_effect----") logging.info("get -----auto_majia_effect----")
...@@ -139,7 +140,7 @@ def auto_click(pk_list): ...@@ -139,7 +140,7 @@ def auto_click(pk_list):
def fun_timer(): def fun_timer():
cookies = login() cookies = login()
if cookies: if cookies:
logging.info("get topic_id_list:%s"%topic_id_list) logging.info("get topic_id_list:%s" % topic_id_list)
click(cookies, topic_id_list[0]) click(cookies, topic_id_list[0])
global timer global 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