Private
Public Access
1
0

Merge branch 'release/v18.8.8'

This commit is contained in:
Sander Roosendaal
2022-11-11 16:58:40 +01:00
3 changed files with 15 additions and 0 deletions
+3
View File
@@ -1051,6 +1051,9 @@ def handle_nonpainsled(f2, fileformat, summary='', startdatetime='', empowerfirm
row2 = rrdata(df=row.df)
if 'quiske' in fileformat:
row2.add_instroke_speed()
if 'speedcoach2' in fileformat or 'nklinklogbook' in fileformat:
# impeller consistency
impellerdata, consistent, ratio = row.impellerconsistent(threshold=0.3)
+5
View File
@@ -303,6 +303,11 @@ def confirm_trainingplan_purchase_view(request, id=0):
url = reverse('promembership')
return HttpResponseRedirect(url)
if not can_plan(request.user):
url = reverse('paidplans_view')
messages.info(request,'You need to upgrade to Self-Coach or Coach first. On your training plan purchases you will get a discount.')
return HttpResponseRedirect(url)
r = request.user.rower
plan = get_object_or_404(InstantPlan, pk=id)
+7
View File
@@ -2661,6 +2661,13 @@ def rower_view_instantplan(request, id='', userid=0):
'id': id,
})
return HttpResponseRedirect(url)
if not can_plan(request.user):
messages.error(
request, 'You must be on a <a href="/rowers/paidplans">paid plan</a> to use free training plans')
url = reverse('rower_view_instantplan', kwargs={
'id': id,
})
return HttpResponseRedirect(url)
form = InstantPlanSelectForm(request.POST, targets=targets)