Spaces:
Running
Running
Update akn/utils/expired_bot.py
Browse files- akn/utils/expired_bot.py +3 -1
akn/utils/expired_bot.py
CHANGED
@@ -37,7 +37,9 @@ async def watch_do_time(user_id, client, assistant):
|
|
37 |
await asyncio.sleep(30)
|
38 |
continue
|
39 |
|
40 |
-
expired_on
|
|
|
|
|
41 |
LOGS.info(f"Expiration date for user {user_id}: {expired_on}")
|
42 |
|
43 |
if now >= expired_on:
|
|
|
37 |
await asyncio.sleep(30)
|
38 |
continue
|
39 |
|
40 |
+
if isinstance(expired_on, str):
|
41 |
+
expired_on = dt.strptime(expired_on, "%d-%m-%Y")
|
42 |
+
|
43 |
LOGS.info(f"Expiration date for user {user_id}: {expired_on}")
|
44 |
|
45 |
if now >= expired_on:
|