forked from Pavel_Durov/python_bot
now we counting
This commit is contained in:
parent
f46ba32473
commit
2de30513b2
@ -61,7 +61,7 @@ async def up_dick(message: types.Message):
|
|||||||
user = candidate_cursor.pop()
|
user = candidate_cursor.pop()
|
||||||
|
|
||||||
last_time = datetime.datetime.strptime(user['datetimes'], '%Y-%m-%d %H:%M:%S')
|
last_time = datetime.datetime.strptime(user['datetimes'], '%Y-%m-%d %H:%M:%S')
|
||||||
time_to_grow = datetime.datetime.now().replace(hour=14, minute=8, second=8, microsecond=0)
|
time_to_grow = datetime.datetime.now().replace(hour=14, minute=8, second=8, microsecond=0) + datetime.timedelta(days=-1)
|
||||||
|
|
||||||
if (time_to_grow - last_time).total_seconds() > 0:
|
if (time_to_grow - last_time).total_seconds() > 0:
|
||||||
# пришло время крутить!!
|
# пришло время крутить!!
|
||||||
|
Loading…
Reference in New Issue
Block a user