summaryrefslogtreecommitdiff
path: root/src/db_sqlite.py
diff options
context:
space:
mode:
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()