improving calculate trimp
This commit is contained in:
@@ -372,7 +372,7 @@ def workout_import_view(request, source='c2'):
|
||||
_ = integration.open()
|
||||
except NoTokenError: # pragma: no cover
|
||||
try:
|
||||
url = importauthorizeviews[source]
|
||||
url = reverse(importauthorizeviews[source],kwargs={'source':source})
|
||||
return HttpResponseRedirect(url)
|
||||
except KeyError:
|
||||
messages.error(request,'Sorry, an error occurred. Please reauthorize')
|
||||
|
||||
Reference in New Issue
Block a user