[location] Fix scrobble time
All checks were successful
build & deploy / test (push) Successful in 1m56s
build & deploy / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-05-01 21:08:44 -04:00
parent 752b4afaa9
commit df6a16f1e7
2 changed files with 3 additions and 5 deletions

View File

@ -1081,7 +1081,7 @@ def gpslogger_scrobble_location(data_dict: dict, user_id: int) -> Scrobble:
"position_provider": provider,
}
)
if scrobble.timestamp:
if scrobble.in_progress and scrobble.timestamp:
scrobble.playback_position_seconds = (
timezone.now() - scrobble.timestamp
).seconds