Fix: Missing renamed methods (#1105)

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
This commit is contained in:
Adrià Casajús 2022-06-22 15:34:57 +02:00 committed by GitHub
parent 99ce10a1bc
commit db6ec2dbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@
</a>
</div>
{% set sub = current_user.get_subscription() %}
{% set sub = current_user.get_paddle_subscription() %}
{% if sub and sub.cancelled %}
<div class="alert alert-primary" role="alert">
You have an active subscription until {{ sub.next_bill_date.strftime("%Y-%m-%d") }}. <br>

View File

@ -27,9 +27,9 @@
{% if current_user.lifetime %}
You have lifetime access to the Premium plan.
{% elif current_user.lifetime_or_active_subscription() %}
{% if current_user.get_subscription() %}
{% if current_user.get_paddle_subscription() %}
<div>
{{ current_user.get_subscription().plan_name() }} plan subscribed via Paddle.
{{ current_user.get_paddle_subscription().plan_name() }} plan subscribed via Paddle.
<a href="{{ url_for('dashboard.billing') }}">
Manage Subscription ➡
</a>