Fix Boolean issue in add_break

This commit is contained in:
2025-10-17 10:58:25 -06:00
parent 6b2421e55c
commit aca7358af8

View File

@@ -142,9 +142,9 @@ class DBHelper():
self.__CONN = connect_config(self._config)
self.__CONN.autocommit = True
cursor = self.__CONN.cursor()
is_range: int = 1
is_range: bool = True
if break_start == break_end:
is_range = 0
is_range = False
cursor.execute("INSERT INTO breaks (created_user, is_range, open_range, close_range) VALUES (%s, %s, %s, %s)", (user_id, is_range, break_start, break_end))
return