diff options
author | Louie S <louie@example.com> | 2023-09-16 09:36:14 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-16 09:36:14 -0400 |
commit | 0ce1224da8c2007de9bdf7898341142897e0c64f (patch) | |
tree | d1e37b838b99c17892dbc90f71a273d1673a1708 /src/db_sqlite.py | |
parent | 8650e59af3ecc0d77615f1f4fd2a8b78db6232d0 (diff) |
Implement reloading
Diffstat (limited to 'src/db_sqlite.py')
-rw-r--r-- | src/db_sqlite.py | 2 |
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() |