c2 import adds rest distance
This commit is contained in:
@@ -3114,6 +3114,13 @@ def handle_c2_async_workout(alldata,userid,c2token,c2id,delaysec,defaulttimezone
|
||||
splitdata = None
|
||||
|
||||
distance = data['distance']
|
||||
try:
|
||||
rest_distance = data['rest_distance']
|
||||
rest_time = data['rest_time']/10.
|
||||
except KeyError:
|
||||
rest_distance = 0
|
||||
rest_time = 0
|
||||
distance = distance+rest_distance
|
||||
c2id = data['id']
|
||||
workouttype = data['type']
|
||||
verified = data['verified']
|
||||
|
||||
Reference in New Issue
Block a user