Merge pull request #234 from Fr1ngg/bedolaga-gim3jh

Show checkout resume button for expired subscriptions
This commit is contained in:
Egor
2025-09-23 22:54:51 +03:00
committed by GitHub

View File

@@ -49,4 +49,10 @@ def should_offer_checkout_resume(user: User, has_draft: bool) -> bool:
if subscription is None:
return True
return bool(getattr(subscription, "is_trial", False))
if getattr(subscription, "is_trial", False):
return True
if getattr(subscription, "actual_status", None) == "expired":
return True
return False