forked from mirror/MrDoc
调整文件大小计算函数的位置
This commit is contained in:
parent
d1f4f52cf3
commit
dc2578177b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user