Skip to content

Commit

Permalink
Fix AttributeError in Activity class
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudon committed Sep 20, 2024
1 parent 3a973b8 commit c2a1636
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run_page/generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("+")
Expand Down

0 comments on commit c2a1636

Please sign in to comment.