Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
flopp committed Jul 14, 2020
1 parent bc407f4 commit ee1d76a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activities/generator/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class Activity(Base):
location_country = Column(String)
summary_polyline = Column(String)
track = Column(PickleType)
average_heartrate = Column(Float)
average_speed = Column(Float)
average_heartrate = Column(Float)
average_speed = Column(Float)
pois = None
streak = None

Expand Down Expand Up @@ -172,8 +172,8 @@ def update_or_create_activity(session: Session, athlete: Athlete, strava_activit
activity.elapsed_time = strava_activity.elapsed_time
activity.total_elevation_gain = float(strava_activity.total_elevation_gain)
activity.type = strava_activity.type
activity.average_heartrate=strava_activity.average_heartrate
activity.average_speed=float(strava_activity.average_speed)
activity.average_heartrate = strava_activity.average_heartrate
activity.average_speed = float(strava_activity.average_speed)
try:
decoded = polyline.decode(strava_activity.map.summary_polyline)
activity.summary_polyline = strava_activity.map.summary_polyline
Expand Down

0 comments on commit ee1d76a

Please sign in to comment.