Add "breaks" functionality to bot. #1

Merged
contrastellar merged 23 commits from gabby-dev into main 2025-10-17 17:53:55 +00:00
Showing only changes of commit 74bfe6c116 - Show all commits

View File

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