Parcourir la source

Fix bug where geo locs were not getitng scrobbled

Colin Powell il y a 1 an
Parent
commit
5aa155094f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      vrobbler/apps/scrobbles/models.py

+ 1 - 1
vrobbler/apps/scrobbles/models.py

@@ -698,7 +698,7 @@ class Scrobble(TimeStampedModel):
             media_query = models.Q(board_game=media)
             scrobble_data["board_game_id"] = media.id
         if media_class == "GeoLocation":
-            media_query = models.Q(geo_location=media)
+            media_query = models.Q(media_type=Scrobble.MediaType.GEO_LOCATION)
             scrobble_data["geo_location_id"] = media.id
             dup = cls.objects.filter(
                     media_type=cls.MediaType.GEO_LOCATION,