From 4f9bb59b5806d4a09cbdd3dc2ba232019cc65dc2 Mon Sep 17 00:00:00 2001 From: Son Date: Wed, 1 Dec 2021 17:18:19 +0100 Subject: [PATCH] don't notify user who already have an non-canceled Paddle subscription --- cron.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cron.py b/cron.py index 823fa379..f444805d 100644 --- a/cron.py +++ b/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