Private
Public Access
1
0

fixes and extra logging

This commit is contained in:
Sander Roosendaal
2021-11-09 21:30:11 +01:00
parent 919e7f331b
commit 806e5837f9
5 changed files with 26 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ from rowers.tasks import (
from rowers.models import GraphImage
from rowers.rower_rules import ispromember
from rowers.utils import dologging
from PIL import Image
@@ -600,6 +601,13 @@ def do_sync(w,options, quick=False):
message,id = stravastuff.workout_strava_upload(
w.user.user,w,quick=quick,asynchron=True,
)
dologging(
'strava_export_log.log',
'exporting workout {id} as {type}'.format(
id=w.id,
type = w.workouttype,
)
)
except NoTokenError: # pragma: no cover
id = 0
message = "Please connect to Strava first"