mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 13:06:34 +00:00
Merge pull request #814 from tcely/patch-6
Filter latest downloads with `download_date IS NOT NULL`
This commit is contained in:
commit
508b4e51d9
@ -75,7 +75,9 @@ class DashboardView(TemplateView):
|
||||
data['average_bytes_per_media'] = 0
|
||||
# Latest downloads
|
||||
data['latest_downloads'] = Media.objects.filter(
|
||||
downloaded=True, downloaded_filesize__isnull=False
|
||||
downloaded=True,
|
||||
download_date__isnull=False,
|
||||
downloaded_filesize__isnull=False,
|
||||
).defer('metadata').order_by('-download_date')[:10]
|
||||
# Largest downloads
|
||||
data['largest_downloads'] = Media.objects.filter(
|
||||
|
Loading…
Reference in New Issue
Block a user