Private
Public Access
1
0

bug fixes TP sync

This commit is contained in:
Sander Roosendaal
2017-05-07 07:05:24 +02:00
parent 4ba34cf84e
commit e41e1e0ba8
3 changed files with 9 additions and 6 deletions

View File

@@ -1230,10 +1230,10 @@ def workout_tp_upload_view(request,id=0):
message = ""
r = Rower.objects.get(user=request.user)
res = -1
# try:
thetoken = tp_open(r.user)
# except TPNoTokenError:
# return HttpResponseRedirect("/rowers/me/tpauthorize/")
try:
thetoken = tp_open(r.user)
except TPNoTokenError:
return HttpResponseRedirect("/rowers/me/tpauthorize/")
# ready to upload. Hurray
try: