From 0d3da63aafb4da45c1c5bd36aace49781ef32d45 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 26 Nov 2023 21:32:26 +0100 Subject: [PATCH] Fix bug in geo scrobbler --- vrobbler/apps/scrobbles/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index a5d53e4..2d81195 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -701,7 +701,7 @@ class Scrobble(TimeStampedModel): media_query = models.Q(geo_location=media) scrobble_data["geo_location_id"] = media.id dup = cls.objects.filter( - media_type=cls.MEDIA_TYPE.GeoLocation, + media_type=cls.MediaType.GEO_LOCATION, timestamp = scrobble_data.get("timestamp"), ).first()