testing email workout type
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user