From fa3b73608b40e12204773f3d4fa7379f6b69aae4 Mon Sep 17 00:00:00 2001 From: Liudon Date: Sun, 22 Sep 2024 13:08:21 +0800 Subject: [PATCH] Fix AttributeError in Activity class (#714) --- 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("+")