Private
Public Access
1
0

testing email workout type

This commit is contained in:
Sander Roosendaal
2018-12-16 11:04:14 +01:00
parent 31c04a1aab
commit 8e14eb0e80
3 changed files with 51 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ def gettypeoptions_body2(uploadoptions,body):
if tester.match(line.lower()):
for typ,verb in workouttypes:
str1 = '^(workout)(.*)({a})'.format(
a = typ
a = typ.lower()
)
testert = re.compile(str1)
if testert.match(line.lower()):
@@ -239,11 +239,11 @@ def getplotoptions(uploadoptions,value):
def gettype(uploadoptions,value,key):
workouttype = 'rower'
for type,verb in workouttypes:
if value == type:
workouttype = type
for typ,verb in workouttypes:
if value == typ:
workouttype = typ
if value == verb:
workouttype = type
workouttype = typ
uploadoptions[key] = workouttype
@@ -314,7 +314,7 @@ def upload_options(body):
uploadoptions = getplotoptions_body2(uploadoptions,body)
uploadoptions = getsyncoptions_body2(uploadoptions,body)
uploadoptions = getprivateoptions_body2(uploadoptions,body)
typeoptions = gettypeoptions_body2(uploadoptions,body)
uploadoptions = gettypeoptions_body2(uploadoptions,body)
uploadoptions = getstravaid(uploadoptions,body)
uploadoptions = getworkoutsources(uploadoptions,body)
except IOError: