From 8219ff1083de0df0d9e904918a34be86c592cdc6 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Wed, 27 Nov 2024 17:28:26 +0800 Subject: [PATCH] fix: #745 and subtype to strava Signed-off-by: yihong0618 --- run_page/generator/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_page/generator/__init__.py b/run_page/generator/__init__.py index d1d36a488e4..f0c31fc0eff 100644 --- a/run_page/generator/__init__.py +++ b/run_page/generator/__init__.py @@ -46,6 +46,10 @@ def check_access(self): print("Access ok") def sync(self, force): + """ + Sync activities means sync from strava + TODO, better name later + """ self.check_access() print("Start syncing") @@ -68,6 +72,7 @@ def sync(self, force): activity.map.summary_polyline = filter_out( activity.map.summary_polyline ) + activity.subtype = activity.type created = update_or_create_activity(self.session, activity) if created: sys.stdout.write("+")