From 74bfe6c11662f7d6e8d56c17d2841c59a31ae242 Mon Sep 17 00:00:00 2001 From: Gabriella Date: Fri, 17 Oct 2025 11:40:49 -0600 Subject: [PATCH] Bugfix/db_helper: Fix bug with the query_break() --- src/py/helper/db_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/helper/db_helper.py b/src/py/helper/db_helper.py index 90efcc6..53e47a3 100644 --- a/src/py/helper/db_helper.py +++ b/src/py/helper/db_helper.py @@ -104,7 +104,7 @@ class DBHelper(): self.__CONN = connect_config(self._config) self.__CONN.autocommit = True cursor = self.__CONN.cursor() - cursor.execute(f"SELECT * FROM breaks WHERE date >= NOW() - INTERVAL '1 day' and DATE <= NOW() + interval '{days} days' ORDER BY date ASC;") + cursor.execute(f"SELECT * FROM breaks WHERE open_range >= NOW() - INTERVAL '1 day' and open_range <= NOW() + interval '{days} days' ORDER BY open_range ASC;") self.__CONN.commit() return cursor.fetchall()