mirror of
https://github.com/pdxlocations/contact.git
synced 2026-08-07 09:22:51 +02:00
Fix string comparison
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ def get_time_ago(timestamp):
|
||||
delta = now - dt
|
||||
|
||||
value, unit = get_time_val_units(delta)
|
||||
if unit is not "s":
|
||||
if unit != "s":
|
||||
return f"{value} {unit} ago"
|
||||
return "now"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user