소스 검색

[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"
             )