Skip to content

Commit

Permalink
Fix storage usage for no files
Browse files Browse the repository at this point in the history
  • Loading branch information
harminius committed Dec 12, 2024
1 parent ee8632c commit e505598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/mergin/sync/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ def files_size():
SELECT pg_size_pretty(SUM(sum)) FROM partials;
"""
)
return db.session.execute(files_size).scalar()
return db.session.execute(files_size).scalar() or "0 bytes"

0 comments on commit e505598

Please sign in to comment.