ujwal55 commited on
Commit
bcc7224
Β·
1 Parent(s): d0c627e

Removed abs func

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 abs((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."
 
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."