replaced async with non keyword equivalent
This commit is contained in:
@@ -859,7 +859,7 @@ def default(o):
|
||||
raise TypeError
|
||||
|
||||
# Uploading workout
|
||||
def workout_c2_upload(user,w,async=False):
|
||||
def workout_c2_upload(user,w,asynchron=False):
|
||||
message = 'trying C2 upload'
|
||||
try:
|
||||
if mytypes.c2mapping[w.workouttype] is None:
|
||||
@@ -888,7 +888,7 @@ def workout_c2_upload(user,w,async=False):
|
||||
'Content-Type': 'application/json'}
|
||||
import urllib
|
||||
url = "https://log.concept2.com/api/users/%s/results" % (c2userid)
|
||||
if not async:
|
||||
if not asynchron:
|
||||
response = requests.post(url,headers=headers,data=json.dumps(data,default=default))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user