summaryrefslogtreecommitdiff
path: root/src/db_sqlite.py
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-16 09:36:14 -0400
committerLouie S <louie@example.com>2023-09-16 09:36:14 -0400
commit0ce1224da8c2007de9bdf7898341142897e0c64f (patch)
treed1e37b838b99c17892dbc90f71a273d1673a1708 /src/db_sqlite.py
parent8650e59af3ecc0d77615f1f4fd2a8b78db6232d0 (diff)
Implement reloading
Diffstat (limited to 'src/db_sqlite.py')
-rw-r--r--src/db_sqlite.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db_sqlite.py b/src/db_sqlite.py
index 88a64c2..fd06b5a 100644
--- a/src/db_sqlite.py
+++ b/src/db_sqlite.py
@@ -82,6 +82,7 @@ def loadFromTables():
query = QSqlQuery()
# Load groups
+ Globals.groups = [] # Reset local groups array
query.exec_("SELECT * FROM groups")
while query.next():
record = query.record()
@@ -94,6 +95,7 @@ def loadFromTables():
record.field("hidden").value()))
# Load entries
+ Globals.entries = [] # Reset local entries array
query.exec_("SELECT * FROM entries")
while query.next():
record = query.record()