Private
Public Access
1
0

first version with free syncs for basic users

This commit is contained in:
Sander Roosendaal
2020-07-06 15:19:03 +02:00
parent bde371ac02
commit 645b3167b5
9 changed files with 29 additions and 22 deletions

View File

@@ -168,6 +168,7 @@ def garmin_getworkout(garminid,r,activity):
w.name = name
w.date = date
w.distance = distance
w.uploadedtogarmin = garminid
w.save()
@@ -204,12 +205,13 @@ def garmin_workouts_from_details(activities):
df[' DriveLength (meters)'] = 0
df[' PeakDriveForce (lbs)'] = 1
df[' DriveTime (ms)'] = 0
print(df.info())
rowdata = rowingdata(df=df)
rowdata.write_csv(w.csvfilename,gzip=True)
data = dataprep.dataprep(rowdata.df,id=w.id)
summary = rowdata.allstats()
w.summary=summary
w.uploadedtogarmin = garminid
w.save()
except Rower.DoesNotExist:
pass