From 422d228359cff6041a212becde88f503e8f8aac3 Mon Sep 17 00:00:00 2001 From: garbled1 Date: Tue, 2 May 2023 08:24:50 -0700 Subject: [PATCH] Fix #364 by checking the filesize is not null. --- tubesync/sync/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/views.py b/tubesync/sync/views.py index 58bb465..b1a2860 100644 --- a/tubesync/sync/views.py +++ b/tubesync/sync/views.py @@ -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(