From bbaa8fa078908cdf61e370e5a870a4ead1e0490e Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 24 Nov 2023 15:52:36 +0100 Subject: [PATCH] Fix issue with GPS scrobbles being always in progress --- vrobbler/apps/scrobbles/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 3a5f827..2547f45 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -643,6 +643,9 @@ class Scrobble(TimeStampedModel): updatable = True else: logger.info("No - We've moved, start a new scrobble") + # TODO maybe this should go to `update`? + self.previous.played_to_completion = True + self.previous.save(update_fields=["played_to_completion"]) updatable = False return updatable