mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
don't notify user who already have an non-canceled Paddle subscription
This commit is contained in:
parent
4d388a202c
commit
4f9bb59b58
1 changed files with 5 additions and 0 deletions
5
cron.py
5
cron.py
|
@ -162,6 +162,11 @@ def notify_manual_sub_end():
|
|||
LOG.d("%s has a lifetime licence", user)
|
||||
continue
|
||||
|
||||
paddle_sub: Subscription = user.get_subscription()
|
||||
if paddle_sub and not paddle_sub.cancelled:
|
||||
LOG.d("%s has an active Paddle subscription", user)
|
||||
continue
|
||||
|
||||
if need_reminder:
|
||||
# user can have a (free) manual subscription but has taken a paid subscription via
|
||||
# Paddle, Coinbase or Apple since then
|
||||
|
|
Loading…
Reference in a new issue