diff --git a/rowers/.#runkeeperstuff.py b/rowers/.#runkeeperstuff.py deleted file mode 100644 index 8cbb2c1f..00000000 --- a/rowers/.#runkeeperstuff.py +++ /dev/null @@ -1 +0,0 @@ -E408191@CZ27LT9RCGN72.9372:1490257958 \ No newline at end of file diff --git a/rowers/runkeeperstuff.py b/rowers/runkeeperstuff.py index 25866bc8..b845bf20 100644 --- a/rowers/runkeeperstuff.py +++ b/rowers/runkeeperstuff.py @@ -201,7 +201,9 @@ def createrunkeeperworkoutdata(w): for e in zip(t,lat,lon): point = {'timestamp':e[0], 'latitude':e[1], - 'longitude':e[2],} + 'longitude':e[2], + 'altitude':0, + "type":"gps"} locdata.append(point) hrdata = [] @@ -230,7 +232,7 @@ def createrunkeeperworkoutdata(w): "average_heart_rate": averagehr, "path": locdata, "distance": distancedata, - "heartrate": hrdata, + "heart_rate": hrdata, "post_to_twitter":"false", "post_to_facebook":"false", } @@ -243,7 +245,7 @@ def createrunkeeperworkoutdata(w): "notes": w.notes, "avg_heartrate": averagehr, "distance": distancedata, - "heartrate": hrdata, + "heart_rate": hrdata, "post_to_twitter":"false", "post_to_facebook":"false", } diff --git a/rowers/templates/imports.html b/rowers/templates/imports.html index 640cae9a..6bfda942 100644 --- a/rowers/templates/imports.html +++ b/rowers/templates/imports.html @@ -3,62 +3,77 @@ {% block content %}
+
-+
+Import workouts from Strava
+Import workouts from SportTracks
+Click one of the below logos to connect to the service of your choice. -You only need to do this once. After that, the site will have access until you -revoke the authorization for the "rowingdata" app.
+ +