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()