d
This commit is contained in:
@@ -246,11 +246,16 @@ def get_polar_workouts(user):
|
||||
try:
|
||||
workouttype = mytypes.polaraccesslink_sports[exercise_dict['detailed-sport-info']]
|
||||
except KeyError:
|
||||
dologging('polar.log',exercise_dict['detailed-sport-info'])
|
||||
dologging('polar.log',workouttype)
|
||||
try:
|
||||
workouttype = mytypes.polarmappinginv[exercise_dict['sport'].lower()]
|
||||
except KeyError:
|
||||
dologging('polar.log',workouttype)
|
||||
pass
|
||||
|
||||
dologging('polar.log',workouttype)
|
||||
|
||||
|
||||
# post file to upload api
|
||||
# TODO: add workouttype
|
||||
|
||||
@@ -789,7 +789,7 @@ def mocked_requests(*args, **kwargs):
|
||||
"has-route": True,
|
||||
"club-id": 999,
|
||||
"club-name": "Polar Club",
|
||||
"detailed-sport-info": "WATERSPORTS_WATERSKI",
|
||||
"detailed-sport-info": "WALKING",
|
||||
"fat-percentage": 60,
|
||||
"carbohydrate-percentage": 38,
|
||||
"protein-percentage": 2
|
||||
|
||||
Reference in New Issue
Block a user