mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
Merge pull request #969 from adamantike/fix/implement-total-filesize-stat
fix: Add implementation for total filesize statistic
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user