Private
Public Access
1
0

c2 to async

This commit is contained in:
Sander Roosendaal
2020-03-09 22:11:35 +01:00
parent cd43218e84
commit 050db5b560
6 changed files with 72 additions and 23 deletions

View File

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