yihong0618 / running_page

Make your own running home page
https://running-page.vercel.app
MIT License
3.63k stars 1.05k forks source link

Fix AttributeError in Activity class #713

Closed Liudon closed 2 months ago

Liudon commented 2 months ago

When enable IGNORE_BEFORE_SAVING, workflow run failed:

Run python run_page/strava_sync.py *** *** ***
Traceback (most recent call last):
  File "/home/runner/work/workouts_page/workouts_page/run_page/strava_sync.py", line 33, in <module>
Access ok
    run_strava_sync(
  File "/home/runner/work/workouts_page/workouts_page/run_page/strava_sync.py", line 14, in run_strava_sync
    generator.sync(False)
  File "/home/runner/work/workouts_page/workouts_page/run_page/generator/__init__.py", line 68, in sync
    activity.summary_polyline = filter_out(activity.summary_polyline)
AttributeError: 'Activity' object has no attribute 'summary_polyline'
Start syncing
Error: Process completed with exit code 1.
vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
running-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2024 2:25pm
Liudon commented 2 months ago

sorry, i commit my code to this branch, i create a new pr.😓😓😓