Commit 5cfa3e37 authored by lixiaofang's avatar lixiaofang

auto_vest

parent c11c68b7
......@@ -49,9 +49,8 @@ def auto_follow_user(card_info, after_day=False):
"all_follow_id" not in card_info and "all_push_time" not in card_info):
###根据创建时间回答等级去获取对应的下发时间
repeat_time = 1
while True:
repeat_time = 1
if card_info['type'] == "get_write_answer_userinfo":
repeat_time = 0
card_info['have_follow_number'] = 0
......
......@@ -204,7 +204,6 @@ def get_click_follow_time_by_create_time(create_time="", content_level=0, action
createt = datetime.datetime.strptime(create_time, '%Y-%m-%d %H:%M:%S')
nowt = now.strftime('%Y-%m-%d %H:%M:%S')
##获取创建时间和当前时间的相差秒数
num = (now - createt).total_seconds()
num_days = (now - createt).days
content_day_need_add_one_day = False
logging.info("get-----------------num_days:%s" % num_days)
......
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