mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Fix #364 by checking the filesize is not null.
This commit is contained in:
parent
1f68be5c26
commit
422d228359
@ -70,7 +70,7 @@ class DashboardView(TemplateView):
|
||||
data['average_bytes_per_media'] = 0
|
||||
# Latest downloads
|
||||
data['latest_downloads'] = Media.objects.filter(
|
||||
downloaded=True
|
||||
downloaded=True, downloaded_filesize__isnull=False
|
||||
).order_by('-download_date')[:10]
|
||||
# Largest downloads
|
||||
data['largest_downloads'] = Media.objects.filter(
|
||||
|
Loading…
Reference in New Issue
Block a user