c2 to async
This commit is contained in:
@@ -24,6 +24,7 @@ import argparse
|
||||
import yamllint
|
||||
from subprocess import call
|
||||
import re
|
||||
import sys
|
||||
|
||||
from verbalexpressions import VerEx
|
||||
|
||||
@@ -524,10 +525,12 @@ def do_sync(w,options, quick=False):
|
||||
|
||||
if ('upload_to_C2' in options and options['upload_to_C2']) or (w.user.c2_auto_export and ispromember(w.user.user)):
|
||||
try:
|
||||
message,id = c2stuff.workout_c2_upload(w.user.user,w)
|
||||
message,id = c2stuff.workout_c2_upload(w.user.user,w,async=True)
|
||||
except NoTokenError:
|
||||
id = 0
|
||||
message = "Something went wrong with the Concept2 sync"
|
||||
except:
|
||||
pass
|
||||
|
||||
if ('upload_to_Strava' in options and upload_to_strava) or (w.user.strava_auto_export and ispromember(w.user.user)):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user