From 586724662da3f461481a013054757b277dcf77d3 Mon Sep 17 00:00:00 2001 From: Russell Schmidt Date: Mon, 3 Feb 2025 18:55:02 -0600 Subject: [PATCH] Fix string comparison --- utilities/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/utils.py b/utilities/utils.py index c7d2aa2..1aeaf9c 100644 --- a/utilities/utils.py +++ b/utilities/utils.py @@ -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"