Skip to content

Commit

Permalink
round filesize in climate contentview #48
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatErikk committed Apr 10, 2024
1 parent 1bdccc0 commit e7fe839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/climate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get(self, request):

dir_content_element = []
dir_content_element.append(f)
dir_content_element.append(str(file_stats.st_size / (1024 * 1024)) + " MB")
dir_content_element.append(str(round(file_stats.st_size / (1024 * 1024), 4)) + " MB")
creation_date = None

try:
Expand Down

0 comments on commit e7fe839

Please sign in to comment.