mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Linter issues for helpers.py
This commit is contained in:
parent
d3e9906af3
commit
deb6e9922c
@ -100,7 +100,7 @@ def humanize_megabytes(mb):
|
||||
return f'{int(mb / 1048576)} TB'
|
||||
if not mb % 1024:
|
||||
return f'{int(mb / 1024)} GB'
|
||||
return f'{float(mb)/(1048576):.2f} MB'
|
||||
return f'{int(mb) / (1048576):.2f} MB'
|
||||
|
||||
|
||||
@register.filter()
|
||||
|
Loading…
Reference in New Issue
Block a user