Skip to content

Commit

Permalink
fix: #745 and subtype to strava
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Nov 27, 2024
1 parent 23f5824 commit 8219ff1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run_page/generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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("+")
Expand Down

0 comments on commit 8219ff1

Please sign in to comment.