From c9f8e75cbfa126f0c34cae7ed9083ebad309bb53 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 21 Jul 2023 06:45:03 -0400 Subject: [PATCH] Max 3k feeds --- apps/profile/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/profile/models.py b/apps/profile/models.py index 4cae2bc1c..cb8c6b88f 100644 --- a/apps/profile/models.py +++ b/apps/profile/models.py @@ -235,7 +235,7 @@ class Profile(models.Model): EmailNewPremium.delay(user_id=self.user.pk) subs = UserSubscription.objects.filter(user=self.user) - if subs.count() > 2000: + if subs.count() > 3000: logging.user(self.user, "~FR~SK~FW~SBWARNING! ~FR%s subscriptions~SN!" % (subs.count())) mail_admins(f"WARNING! {self.user.username} has {subs.count()} subscriptions", f"{self.user.username} has {subs.count()} subscriptions and just upgraded to premium. They'll need a refund: {self.user.profile.paypal_sub_id} {self.user.profile.stripe_id} {self.user.email}") @@ -284,7 +284,7 @@ class Profile(models.Model): UserSubscription.schedule_fetch_archive_feeds_for_user(self.user.pk) subs = UserSubscription.objects.filter(user=self.user) - if subs.count() > 2000: + if subs.count() > 3000: logging.user(self.user, "~FR~SK~FW~SBWARNING! ~FR%s subscriptions~SN!" % (subs.count())) mail_admins(f"WARNING! {self.user.username} has {subs.count()} subscriptions", f"{self.user.username} has {subs.count()} subscriptions and just upgraded to archive. They'll need a refund: {self.user.profile.paypal_sub_id} {self.user.profile.stripe_id} {self.user.email}") @@ -338,7 +338,7 @@ class Profile(models.Model): EmailNewPremiumPro.delay(user_id=self.user.pk) subs = UserSubscription.objects.filter(user=self.user) - if subs.count() > 2000: + if subs.count() > 3000: logging.user(self.user, "~FR~SK~FW~SBWARNING! ~FR%s subscriptions~SN!" % (subs.count())) mail_admins(f"WARNING! {self.user.username} has {subs.count()} subscriptions", f"{self.user.username} has {subs.count()} subscriptions and just upgraded to pro. They'll need a refund: {self.user.profile.paypal_sub_id} {self.user.profile.stripe_id} {self.user.email}")