소스 검색

[scrobbling] Fix location function name typo

Colin Powell 1 년 전
부모
커밋
a637a59a40
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      vrobbler/apps/scrobbles/models.py

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

@@ -767,7 +767,7 @@ class Scrobble(TimeStampedModel):
 
         # Do some funny stuff if it's a geo location
         if mtype == cls.MediaType.GEO_LOCATION:
-            moved_location = cls.check_location_for_completion(media, user_id)
+            moved_location = cls.user_has_moved_locations(media, user_id)
             if not moved_location:
                 logger.info(
                     f"[scrobbling] updating {scrobble.id} for {mtype} {media.id} from {source}",
@@ -799,7 +799,7 @@ class Scrobble(TimeStampedModel):
         return cls.create(scrobble_data)
 
     @classmethod
-    def location_can_be_updated(
+    def user_has_moved_locations(
         cls, location: GeoLocation, user_id: int
     ) -> bool:
         scrobble = (