Commit af888fc7 authored by lixiaofang's avatar lixiaofang

auto_vest

parent 78d16ff4
......@@ -205,15 +205,11 @@ def get_click_follow_time_by_create_time(create_time="", content_level=0, action
nowt = now.strftime('%Y-%m-%d %H:%M:%S')
##获取创建时间和当前时间的相差秒数
num = (now - createt).total_seconds()
num_days = now.day - createt.day
num_days = (now - createt).days
content_day_need_add_one_day = False
if after_day:
num_days += repeat_time
content_day_need_add_one_day = True
# 创建时间切换成分钟数便于比较
# mins = divmod(num, min)[0]
##根据转换后的分钟数进行比较
##转化成分数后进行一层一层的比较
if num_days == 0:
get_time = randomDate(create_time=createt, action_type=action_type)
......
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