Merge branch 'release/v16.7.7'
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{% if rower.eurocredits %}
|
{% if rower.eurocredits %}
|
||||||
<p>
|
<p>
|
||||||
<em>Your have discount vouchers for an mount of {{ rower.eurocredits }}€</em>. You
|
<em>Your have discount vouchers for an amount of {{ rower.eurocredits }}€</em>. You
|
||||||
will get discount for up to this amount on any paid plan.
|
will get discount for up to this amount on any paid plan.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -2576,7 +2576,10 @@ def rower_view_instantplan(request,id='',userid=0):
|
|||||||
raise Http404("Plan does not exist")
|
raise Http404("Plan does not exist")
|
||||||
|
|
||||||
plan = InstantPlan.objects.get(uuid=id)
|
plan = InstantPlan.objects.get(uuid=id)
|
||||||
discountedprice = credits.discounted(plan.price,r)
|
try:
|
||||||
|
discountedprice = credits.discounted(plan.price,r)
|
||||||
|
except AttributeError:
|
||||||
|
discountedprice = plan.price
|
||||||
|
|
||||||
authorizationstring = 'Bearer '+settings.WORKOUTS_FIT_TOKEN
|
authorizationstring = 'Bearer '+settings.WORKOUTS_FIT_TOKEN
|
||||||
url = settings.WORKOUTS_FIT_URL+"/trainingplan/"+id
|
url = settings.WORKOUTS_FIT_URL+"/trainingplan/"+id
|
||||||
|
|||||||
Reference in New Issue
Block a user