调整文件大小计算函数的位置

This commit is contained in:
yangjian 2020-04-06 18:16:33 +08:00
parent d1f4f52cf3
commit dc2578177b

View File

@ -1174,8 +1174,9 @@ def manage_attachment(request):
for i in formats:
size /= unit
if size < unit:
return f'{round(size, precision)}{i}'
return f'{round(size, precision)}{i}'
r = '{}{}'.format(round(size, precision),i)
return r
if request.method == 'GET':
try:
search_kw = request.GET.get('kw', None)