From de4450a29ad0a5c3f05cdfb02aa93060f700fefe Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Wed, 11 May 2022 18:02:49 -0400 Subject: [PATCH] comparison fix --- src/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tables.py b/src/tables.py index 6a0a508..ba1ed96 100644 --- a/src/tables.py +++ b/src/tables.py @@ -41,7 +41,7 @@ class TableNotification(Base): .filter_by(type='won').all() actual = [] for r in within_3_days: - if r.created_at.replace(tzinfo=tz.tzutc()).astimezone(tz.tzlocal()) == datetime.now(tz=tz.tzlocal()).date(): + if r.created_at.replace(tzinfo=tz.tzutc()).astimezone(tz.tzlocal()).date() == datetime.now(tz=tz.tzlocal()).date(): actual.append(r) return actual