Spaces:
Sleeping
Sleeping
Removed abs func
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def list_reminders():
|
|
39 |
def check_next():
|
40 |
now = datetime.now(pytz.utc)
|
41 |
for r in reminders:
|
42 |
-
if
|
43 |
local_time = r['time'].astimezone(pytz.timezone(r['tz']))
|
44 |
return f"π Due now: {r['message']} ({local_time.strftime('%H:%M %Z')})"
|
45 |
return "β
Nothing due right now."
|
|
|
39 |
def check_next():
|
40 |
now = datetime.now(pytz.utc)
|
41 |
for r in reminders:
|
42 |
+
if (r['time'].astimezone(pytz.utc) - now).total_seconds() < 60:
|
43 |
local_time = r['time'].astimezone(pytz.timezone(r['tz']))
|
44 |
return f"π Due now: {r['message']} ({local_time.strftime('%H:%M %Z')})"
|
45 |
return "β
Nothing due right now."
|