Kaynağa Gözat

[locations] Need to be specific to geolocs

Colin Powell 1 yıl önce
ebeveyn
işleme
3d1ad8da3a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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"
             )