瀏覽代碼

Fix wrong ordering for long plays on completion

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

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

@@ -184,7 +184,7 @@ def get_long_plays_completed(user: User) -> list:
         for media in media_obj.objects.all():
             if (
                 media.scrobble_set.all()
-                and media.scrobble_set.filter(user=user)
+                and media.scrobble_set.filter(user=user).order_by("timestamp")
                 .last()
                 .long_play_complete
                 == True