fix(app): fix swapped image counts for uncategorized

This commit is contained in:
psychedelicious 2024-07-20 19:57:12 +10:00
parent 9d3a72fff3
commit dca5a2ce26

View File

@ -295,8 +295,8 @@ class SqliteBoardRecordStorage(BoardRecordStorageBase):
""" """
self._cursor.execute(query) self._cursor.execute(query)
results = self._cursor.fetchall() results = self._cursor.fetchall()
image_count = results[0][1] image_count = dict(results)['images']
asset_count = results[1][1] asset_count = dict(results)['assets']
return UncategorizedImageCounts(image_count=image_count, asset_count=asset_count) return UncategorizedImageCounts(image_count=image_count, asset_count=asset_count)
finally: finally:
self._lock.release() self._lock.release()