mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 08:58:30 +01:00
small refactoring (#1120)
This commit is contained in:
parent
aac493ad2f
commit
75c710a6ab
2 changed files with 24 additions and 24 deletions
|
@ -32,9 +32,9 @@ def pricing():
|
||||||
flash("You already have a lifetime subscription", "error")
|
flash("You already have a lifetime subscription", "error")
|
||||||
return redirect(url_for("dashboard.index"))
|
return redirect(url_for("dashboard.index"))
|
||||||
|
|
||||||
sub: Subscription = current_user.get_paddle_subscription()
|
paddle_sub: Subscription = current_user.get_paddle_subscription()
|
||||||
# user who has canceled can re-subscribe
|
# user who has canceled can re-subscribe
|
||||||
if sub and not sub.cancelled:
|
if paddle_sub and not paddle_sub.cancelled:
|
||||||
flash("You already have an active subscription", "error")
|
flash("You already have an active subscription", "error")
|
||||||
return redirect(url_for("dashboard.index"))
|
return redirect(url_for("dashboard.index"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue