From 0370b643515f8b2de9781838bd1c4c09a9b79e3b Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 6 Feb 2023 00:19:07 -0500 Subject: [PATCH] Fix exporting only tracks by default --- vrobbler/apps/scrobbles/export.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/export.py b/vrobbler/apps/scrobbles/export.py index 67cdce7..5795760 100644 --- a/vrobbler/apps/scrobbles/export.py +++ b/vrobbler/apps/scrobbles/export.py @@ -13,7 +13,9 @@ def export_scrobbles(start_date=None, end_date=None, format="AS"): if start_date: end_query = Q(timestamp__lte=end_date) - scrobble_qs = Scrobble.objects.filter(start_query, end_query) + scrobble_qs = Scrobble.objects.filter( + start_query, end_query, track__isnull=False + ) headers = [] extension = 'tsv' delimiter = '\t'