Private
Public Access
1
0

replaced async with non keyword equivalent

This commit is contained in:
Sander Roosendaal
2020-03-10 06:18:45 +01:00
parent 050db5b560
commit 3d6f8e89cb
2 changed files with 3 additions and 3 deletions

View File

@@ -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))