Fix issue with GPS scrobbles being always in progress
This commit is contained in:
@ -643,6 +643,9 @@ class Scrobble(TimeStampedModel):
|
|||||||
updatable = True
|
updatable = True
|
||||||
else:
|
else:
|
||||||
logger.info("No - We've moved, start a new scrobble")
|
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
|
updatable = False
|
||||||
return updatable
|
return updatable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user