Fix 10x bug in admin storage page

This commit is contained in:
rubenwardy 2024-01-18 18:14:02 +00:00
parent 406eb5d180
commit 9ff7567cde

@ -200,7 +200,7 @@ def storage():
latest_release = package.releases.first() latest_release = package.releases.first()
size_latest = latest_release.file_size_bytes if latest_release else 0 size_latest = latest_release.file_size_bytes if latest_release else 0
size_total = size_releases + size_screenshots size_total = size_releases + size_screenshots
if size_total > min_size*10024*1024: if size_total > min_size*1024*1024:
data.append([package, size_total, size_releases, size_screenshots, size_latest]) data.append([package, size_total, size_releases, size_screenshots, size_latest])
data.sort(key=lambda x: x[1], reverse=True) data.sort(key=lambda x: x[1], reverse=True)