Database migration tool, deduplication of sets data, customizable checkboxes #44

Merged
FrederikBaerentsen merged 51 commits from gregoo/BrickTracker:master into master 2025-01-24 19:12:12 +01:00
Showing only changes of commit 5ea9240f34 - Show all commits

View File

@ -124,10 +124,14 @@ class BrickSQL(object):
# Count the database records # Count the database records
def count_records(self) -> list[BrickCounter]: def count_records(self) -> list[BrickCounter]:
for counter in COUNTERS: for counter in COUNTERS:
# Failsafe this one
try:
record = self.fetchone('schema/count', table=counter.table) record = self.fetchone('schema/count', table=counter.table)
if record is not None: if record is not None:
counter.count = record['count'] counter.count = record['count']
except Exception:
pass
return COUNTERS return COUNTERS