fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for checking paths in waiter
[wolnelektury.git]
/
apps
/
reporting
/
views.py
diff --git
a/apps/reporting/views.py
b/apps/reporting/views.py
index
bf043f2
..
cb87f81
100644
(file)
--- a/
apps/reporting/views.py
+++ b/
apps/reporting/views.py
@@
-21,7
+21,7
@@
def stats_page(request):
annotate(count=Count('type')).\
order_by('type')
for mt in media_types:
annotate(count=Count('type')).\
order_by('type')
for mt in media_types:
- mt['size'] = sum(b.file.size for b in BookMedia.objects.filter(type=mt['type']))
+ mt['size'] = sum(b.file.size for b in BookMedia.objects.filter(type=mt['type'])
.iterator()
)
if mt['type'] in ('mp3', 'ogg'):
deprecated = BookMedia.objects.filter(
type=mt['type'], source_sha1=None)
if mt['type'] in ('mp3', 'ogg'):
deprecated = BookMedia.objects.filter(
type=mt['type'], source_sha1=None)