From c61823f8812285c4512d0af8282143fc043741c5 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 7 Aug 2026 14:36:51 -0400 Subject: [PATCH] [workouts] Mark imported workout scrobbles as complete (not in progress) --- tests/workouts_tests/test_flexify_importer.py | 1 + vrobbler/apps/workouts/importer.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/workouts_tests/test_flexify_importer.py b/tests/workouts_tests/test_flexify_importer.py index 5cfc0d3..7c4be3c 100644 --- a/tests/workouts_tests/test_flexify_importer.py +++ b/tests/workouts_tests/test_flexify_importer.py @@ -150,6 +150,7 @@ def test_import_flexify_full(user): scrobble = Scrobble.objects.get(user=user) assert scrobble.source == "Flexify Import" assert scrobble.played_to_completion is True + assert scrobble.in_progress is False assert scrobble.workout_routine.title == "Middle Distance - Arm Day" entry = scrobble.logdata.workouts[0] diff --git a/vrobbler/apps/workouts/importer.py b/vrobbler/apps/workouts/importer.py index 17a00ec..65d2ba6 100644 --- a/vrobbler/apps/workouts/importer.py +++ b/vrobbler/apps/workouts/importer.py @@ -543,6 +543,7 @@ def import_flexify( media_type=Scrobble.MediaType.WORKOUT, timestamp=timestamp, played_to_completion=True, + in_progress=False, log=log, source=source, )