summaryrefslogtreecommitdiff
path: root/meetingtools/apps
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-10-24 13:04:10 +0200
committerJohan Lundberg <lundberg@nordu.net>2014-10-24 13:04:10 +0200
commitef2c694c37ae00081913866dc9d12d26718264af (patch)
tree169a8865e1828401ed1cf361c1dd8bb6044e4ffb /meetingtools/apps
parent87deafa8caa36f4e10cc704a325700a94c7fb04e (diff)
Changed storage report to provide storage in bytes.HEADmaster
Diffstat (limited to 'meetingtools/apps')
-rw-r--r--meetingtools/apps/content/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meetingtools/apps/content/views.py b/meetingtools/apps/content/views.py
index 9ccd7fe..992aee2 100644
--- a/meetingtools/apps/content/views.py
+++ b/meetingtools/apps/content/views.py
@@ -83,10 +83,10 @@ def cluster_report(request, cluster_name):
data.append({
'domain': item['domain'],
'number_of_files': item['number_of_files'],
- 'storage_used': filesizeformat(item['domain_bytes']),
+ 'storage_used (B)': item['domain_bytes'],
'percent': '{0:0.2g}%'.format(int(round(percent)))
})
- return dicts_to_csv_response(data, header=['domain', 'number_of_files', 'storage_used', 'percent'])
+ return dicts_to_csv_response(data, header=['domain', 'number_of_files', 'storage_used (B)', 'percent'])
return HttpResponseForbidden()
@@ -103,8 +103,8 @@ def domain_report(request, domain_name):
data.append({
'username': item['username'],
'number_of_files': item['number_of_files'],
- 'storage_used': filesizeformat(item['bytecount']),
+ 'storage_used (B)': item['bytecount'],
'percent': '{0:0.2g}%'.format(int(round(percent)))
})
- return dicts_to_csv_response(data, header=['username', 'number_of_files', 'storage_used', 'percent'])
+ return dicts_to_csv_response(data, header=['username', 'number_of_files', 'storage_used (B)', 'percent'])
return HttpResponseForbidden()