Commit 69859c8a authored by 李小芳's avatar 李小芳

Merge branch 'del_today_datas' into 'master'

Del today datas

See merge request !26
parents 1584e854 e2f95fe9
......@@ -69,6 +69,7 @@ def auto_click_user(card_info, after_day=False):
card_info['all_push_time'] = get_time
card_info["need_pust_num"] = len(userids)
card_info["have_pust_num"] = 0
logging.info("get card_info:%s" % card_info)
save_data_to_kafka(card_info)
break
else:
......
......@@ -73,6 +73,8 @@ def auto_follow_user(card_info, after_day=False):
card_info['all_push_time'] = get_time
card_info["need_pust_num"] = len(userids)
card_info["have_pust_num"] = 0
logging.info("get card_info:%s" % card_info)
save_data_to_kafka(card_info)
break
else:
......
......@@ -178,8 +178,13 @@ def get_content_time_by_create_time(create_time="", content_level=0, action_type
##根据转换后的分钟数进行比较
##转化成分数后进行一层一层的比较
if num_days == 0:
get_time = randomDate(create_time=createt, action_type=action_type)
time_region = 0
num_days = 1
get_time = get_one_six_days_random_time(content_level=content_level, num_days=num_days,
action_type=action_type,
content_day_need_add_one_day=content_day_need_add_one_day)
time_region = 1
# get_time = randomDate(create_time=createt, action_type=action_type)
# time_region = 0
return get_time, time_region
elif num_days >= 1 and num_days <= 6:
......@@ -225,9 +230,12 @@ def get_click_follow_time_by_create_time(create_time="", content_level=0, action
content_day_need_add_one_day = True
if num_days == 0:
get_time = randomDate(create_time=createt, action_type=action_type)
num_days = 1
get_time = get_one_six_days_random_time(num_days=num_days, action_type=action_type,
content_level=content_level,
content_day_need_add_one_day=content_day_need_add_one_day)
return get_time, 0
return get_time, 1
elif num_days == 1:
get_time = get_one_six_days_random_time(num_days=num_days, 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