Commit 7b04de82 authored by lixiaofang's avatar lixiaofang

修改时间

parent f79d0772
......@@ -44,8 +44,8 @@ def randomDate(create_time, frmt='%Y-%m-%d %H:%M:%S', action_type=None):
if action_type == "comment":
action_num = random.randint(1, 2)
start = str(create_time + datetime.timedelta(hours=2))
end = str(create_time + datetime.timedelta(hours=4))
start = str(create_time + datetime.timedelta(minutes=30))
end = str(create_time + datetime.timedelta(hours=2))
random_times = [randomDate_six_one(start, end, frmt) for _ in range(action_num)]
have_sort_times = sorted(random_times, key=lambda date: get_list(date))
......
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