Couple of small fixes

This commit is contained in:
Miroslav Štampar 2026-06-05 12:07:15 +02:00
parent 8110ccb38a
commit 69efd623c9
6 changed files with 17 additions and 16 deletions

View file

@ -119,8 +119,8 @@ class Database(object):
else:
break
if statement.lstrip().upper().startswith("SELECT"):
return self.cursor.fetchall()
if statement.lstrip().upper().startswith("SELECT"):
return self.cursor.fetchall()
def init(self):
self.execute("CREATE TABLE IF NOT EXISTS logs(id INTEGER PRIMARY KEY AUTOINCREMENT, taskid INTEGER, time TEXT, level TEXT, message TEXT)")