Private
Public Access
1
0

removed some dead code from ST add strokedata

This commit is contained in:
Sander Roosendaal
2017-01-14 14:58:26 +01:00
parent 645e7e3c63
commit cf9ba0851a

View File

@@ -541,13 +541,11 @@ def add_workout_from_stdata(user,importid,data):
rowdatetime = datetime.datetime.strptime(data['date'],"%Y-%m-%d %H:%M:%S")
rowdatetime = thetimezone.localize(rowdatetime).astimezone(utc)
# try:
# c2intervaltype = data['workout_type']
try:
c2intervaltype = data['workout_type']
except:
c2intervaltype = ''
# except:
# c2intervaltype = ''
try:
title = data['name']