瀏覽代碼

[scrobbles] Exclude geolocs from stop notifications

Colin Powell 1 周之前
父節點
當前提交
94820b1d9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vrobbler/apps/scrobbles/utils.py

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

@@ -313,7 +313,7 @@ def send_stop_notifications_for_in_progress_scrobbles() -> int:
 
     scrobbles_in_progress_qs = Scrobble.objects.filter(
         played_to_completion=False, in_progress=True
-    )
+    ).exclude(media_type=Scrobble.MediaType.GEO_LOCATION)
 
     notifications_sent = 0
     for scrobble in scrobbles_in_progress_qs: