Fix minor issue in saving book scrobbles
This commit is contained in:
@ -612,9 +612,11 @@ class Scrobble(TimeStampedModel):
|
|||||||
played_to_completion=True,
|
played_to_completion=True,
|
||||||
long_play_complete=False,
|
long_play_complete=False,
|
||||||
).last()
|
).last()
|
||||||
self.video_game_minutes_played = (
|
self.video_game_minutes_played = int(updated_playback)
|
||||||
int(last_scrobble.playback_position) + updated_playback
|
if last_scrobble:
|
||||||
)
|
self.video_game_minutes_played = (
|
||||||
|
int(last_scrobble.playback_position) + updated_playback
|
||||||
|
)
|
||||||
|
|
||||||
self.playback_position = int(updated_playback)
|
self.playback_position = int(updated_playback)
|
||||||
self.played_to_completion = True
|
self.played_to_completion = True
|
||||||
|
|||||||
Reference in New Issue
Block a user