Merge pull request #969 from adamantike/fix/implement-total-filesize-stat

fix: Add implementation for total filesize statistic
This commit is contained in:
Georges-Antoine Assi
2024-06-30 20:00:00 -04:00
committed by GitHub

View File

@@ -42,4 +42,5 @@ class DBStatsHandler(DBBaseHandler):
@begin_session
def get_total_filesize(self, session: Session = None) -> int:
return 0
"""Get the total filesize of all roms in the database, in bytes."""
return session.scalar(select(func.sum(Rom.file_size_bytes)).select_from(Rom))