Private
Public Access
1
0

added test if gz file exists + repair - strave export

This commit is contained in:
Sander Roosendaal
2017-09-12 08:52:41 +02:00
parent 4c125c9aa5
commit 734b2631f1
2 changed files with 24 additions and 2 deletions

View File

@@ -568,7 +568,10 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
workoutdate = row.rowdatetime.strftime('%Y-%m-%d')
workoutstarttime = row.rowdatetime.strftime('%H:%M:%S')
workoutstartdatetime = thetimezone.localize(row.rowdatetime).astimezone(utc)
try:
workoutstartdatetime = thetimezone.localize(row.rowdatetime).astimezone(utc)
except ValueError:
workoutstartdatetime = row.rowdatetime
if makeprivate:
privacy = 'hidden'