Commit 36405b3e authored by lixiaofang's avatar lixiaofang

依赖

parent 502321d3
This diff is collapsed.
......@@ -44,13 +44,13 @@ def kafka_consum(topic_name=None):
logging.info("get push_time_date:%s" % push_time_date)
# 判断如果当前的push_time 和当前的创建时间一样 需要给push_time下发真的push时间
if current_push_time == create_time:
if action_type == "comment":
if card_info['action_type'] == "comment":
auto_comment_user(card_info, after_day=True)
elif action_type == "click":
elif card_info['action_type'] == "click":
auto_click_user(card_info, after_day=True)
elif action_type == "follow":
elif card_info['action_type'] == "follow":
auto_follow_user(card_info, after_day=True)
else:
......
......@@ -29,7 +29,7 @@ def randomDate(create_time, frmt='%Y-%m-%d %H:%M:%S', action_type=None):
action_num = random.randint(1, 3)
if action_type == "comment":
action_num = random.randint(1, 1)
action_num = random.randint(0, 1)
start = str(create_time + datetime.timedelta(hours=2))
end = str(create_time + datetime.timedelta(hours=4))
......
......@@ -20,4 +20,6 @@ git+ssh://git@git.wanmeizhensuo.com/backend/helios.git@v0.7.2
virtualenv==15.1.0
gevent==1.2.1
git+ssh://git@git.wanmeizhensuo.com/backend/gm-rpcd.git@v0.2.2
jieba==0.39
\ No newline at end of file
jieba==0.39
gunicorn==19.7.1
wheel==0.24.0
\ 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