Merge branch 'release/v18.0.14'
This commit is contained in:
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -409,8 +409,19 @@ def workout_import_view(request, source='c2'):
|
||||
after = arrow.get(startdate)
|
||||
after = str(int(after.timestamp()*1000))
|
||||
|
||||
workouts = integration.get_workout_list(before=before, after=after, startdate=startdate, enddate=enddate)
|
||||
|
||||
try:
|
||||
workouts = integration.get_workout_list(
|
||||
before=before,
|
||||
after=after,
|
||||
startdate=startdate,
|
||||
enddate=enddate
|
||||
)
|
||||
except NoTokenError:
|
||||
messages.error(request,"You must first make the connection to {source}".format(
|
||||
source=source
|
||||
))
|
||||
url = reverse(importauthorizeviews[source],kwargs={'source':source})
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
if request.method == 'POST': # pragma: no cover
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user