From c2a163607bff484a5497ef669ab826d6a262f19e Mon Sep 17 00:00:00 2001 From: Liudon Date: Fri, 20 Sep 2024 20:32:53 +0800 Subject: [PATCH] Fix AttributeError in Activity class --- run_page/generator/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_page/generator/__init__.py b/run_page/generator/__init__.py index 3ed84ae4bfa..3a504e17a6e 100644 --- a/run_page/generator/__init__.py +++ b/run_page/generator/__init__.py @@ -64,7 +64,10 @@ def sync(self, force): if self.only_run and activity.type != "Run": continue if IGNORE_BEFORE_SAVING: - activity.summary_polyline = filter_out(activity.summary_polyline) + if activity.map and activity.map.summary_polyline: + activity.map.summary_polyline = filter_out( + activity.map.summary_polyline + ) created = update_or_create_activity(self.session, activity) if created: sys.stdout.write("+")