Преглед изворни кода

[locations] Need to be specific to geolocs

Colin Powell пре 1 година
родитељ
комит
3d1ad8da3a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      vrobbler/apps/scrobbles/models.py

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

@@ -830,7 +830,7 @@ class Scrobble(TimeStampedModel):
             )
             return scrobble.update(scrobble_data)
 
-        if scrobble:
+        if scrobble and scrobble.media_type == "GeoLocation":
             logger.info(
                 f"[scrobbling] stopping existing scrobble {scrobble.id} before creating new one"
             )