소스 검색

[scrobbling] Fix creation of new location scrobbles

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

+ 1 - 0
vrobbler/apps/scrobbles/scrobblers.py

@@ -351,6 +351,7 @@ def gpslogger_scrobble_location(data_dict: dict, user_id: int) -> Scrobble:
         "user_id": user_id,
         "timestamp": pendulum.parse(data_dict.get("time", timezone.now())),
         "source": "GPSLogger",
+        "media_type": Scrobble.MediaType.GEO_LOCATION,
     }
 
     scrobble = Scrobble.create_or_update_location(