Private
Public Access
1
0

Merge tag 'v7.16' into develop

hotfix
This commit is contained in:
Sander Roosendaal
2018-07-06 16:35:01 +02:00

View File

@@ -885,7 +885,7 @@ def hasplannedsessions(user):
result = user.is_authenticated() and (r.rowerplan=='coach' or r.rowerplan=='plan')
if not result and r.plantrialexpires:
result = user.is_authenticaded() and r.rowerplan=='basic' and r.plantrialexpires >= datetime.date.today()
result = user.is_authenticated() and r.rowerplan=='basic' and r.plantrialexpires >= datetime.date.today()
else:
result = False
@@ -10690,7 +10690,10 @@ def workout_summary_edit_view(request,id,message="",successmessage=""
work = int(normw)
power = int(normp)
pace_secs = int(500./normv)
try:
pace_secs = int(500./normv)
except (OverflowError, ZeroDivisionError):
pace_secs = 140.
try:
avpace = datetime.timedelta(seconds=int(500./normv))