Merge "Remove mimetype check when calculating size"

This commit is contained in:
Zuul 2018-11-19 21:29:49 +00:00 committed by Gerrit Code Review
commit 73a0b0e683
1 changed files with 1 additions and 4 deletions

View File

@ -362,10 +362,7 @@ class Indexer():
filename)
output += '<td>%s</td>' % time.asctime(
file_details.last_modified)
if file_details.mimetype == 'folder':
size = str(file_details.size)
else:
size = sizeof_fmt(file_details.size, suffix='')
size = sizeof_fmt(file_details.size, suffix='')
output += '<td style="text-align: right">%s</td>' % size
output += '</tr>\n'