mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 06:31:27 +08:00
improve upgrade_channel
This commit is contained in:
parent
00e0b69c76
commit
78df95395b
1 changed files with 4 additions and 1 deletions
|
@ -462,7 +462,10 @@ class User(db.Model, ModelMixin, UserMixin, PasswordOracle):
|
|||
|
||||
sub: Subscription = self.get_subscription()
|
||||
if sub:
|
||||
return f"Paddle Subscription {sub.subscription_id}"
|
||||
if sub.cancelled:
|
||||
return f"Cancelled Paddle Subscription {sub.subscription_id}"
|
||||
else:
|
||||
return f"Active Paddle Subscription {sub.subscription_id}"
|
||||
|
||||
apple_sub: AppleSubscription = AppleSubscription.get_by(user_id=self.id)
|
||||
if apple_sub and apple_sub.is_valid():
|
||||
|
|
Loading…
Reference in a new issue