Addressed PR comments.

Changed humanize_megabytes in helpers.py
This commit is contained in:
Julio-Oliveira-Encora 2024-05-09 16:17:17 -03:00
parent c91c25d059
commit d3e9906af3

View File

@ -96,8 +96,6 @@ def humanize_megabytes(mb):
"""
if not mb:
return ''
if len(str(mb)) < 6:
return mb
if not mb % 1048576: # 1024^2
return f'{int(mb / 1048576)} TB'
if not mb % 1024: