do not send renewal reminder for lifetime user
This commit is contained in:
parent
5f47d172e0
commit
d875b2e0e5
11
cron.py
11
cron.py
|
@ -157,16 +157,15 @@ def notify_manual_sub_end():
|
||||||
elif arrow.now().shift(days=4) > manual_sub.end_at > arrow.now().shift(days=3):
|
elif arrow.now().shift(days=4) > manual_sub.end_at > arrow.now().shift(days=3):
|
||||||
need_reminder = True
|
need_reminder = True
|
||||||
|
|
||||||
if need_reminder:
|
user = manual_sub.user
|
||||||
user = manual_sub.user
|
if user.lifetime:
|
||||||
|
LOG.d("%s has a lifetime licence", user)
|
||||||
|
continue
|
||||||
|
|
||||||
|
if need_reminder:
|
||||||
# user can have a (free) manual subscription but has taken a paid subscription via
|
# user can have a (free) manual subscription but has taken a paid subscription via
|
||||||
# Paddle, Coinbase or Apple since then
|
# Paddle, Coinbase or Apple since then
|
||||||
if manual_sub.is_giveaway:
|
if manual_sub.is_giveaway:
|
||||||
if user.lifetime:
|
|
||||||
LOG.d("%s has a lifetime licence", user)
|
|
||||||
continue
|
|
||||||
|
|
||||||
if user.get_subscription():
|
if user.get_subscription():
|
||||||
LOG.d("%s has a active Paddle subscription", user)
|
LOG.d("%s has a active Paddle subscription", user)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue