Skip to content

Commit

Permalink
Fix #364 by checking the filesize is not null.
Browse files Browse the repository at this point in the history
  • Loading branch information
garbled1 committed May 2, 2023
1 parent 1f68be5 commit 422d228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tubesync/sync/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_context_data(self, *args, **kwargs):
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(
Expand Down

0 comments on commit 422d228

Please sign in to comment.