From eafb5d6096b7a96858ff2887bd1fb2ab91a0a532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 9 May 2018 21:04:07 +0300 Subject: [PATCH] Increase check limits for paid accounts. --- hc/payments/tests/test_set_plan.py | 6 +++--- hc/payments/views.py | 4 ++-- templates/accounts/billing.html | 12 ++++++------ templates/payments/pricing.html | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hc/payments/tests/test_set_plan.py b/hc/payments/tests/test_set_plan.py index e13e13fe..3ebc7c55 100644 --- a/hc/payments/tests/test_set_plan.py +++ b/hc/payments/tests/test_set_plan.py @@ -37,7 +37,7 @@ class SetPlanTestCase(BaseTestCase): # User's profile should have a higher limits self.profile.refresh_from_db() self.assertEqual(self.profile.ping_log_limit, 1000) - self.assertEqual(self.profile.check_limit, 50) + self.assertEqual(self.profile.check_limit, 100) self.assertEqual(self.profile.team_limit, 9) self.assertEqual(self.profile.sms_limit, 50) self.assertEqual(self.profile.sms_sent, 0) @@ -65,7 +65,7 @@ class SetPlanTestCase(BaseTestCase): # User's profile should have a higher limits self.profile.refresh_from_db() self.assertEqual(self.profile.ping_log_limit, 1000) - self.assertEqual(self.profile.check_limit, 50) + self.assertEqual(self.profile.check_limit, 100) self.assertEqual(self.profile.team_limit, 9) self.assertEqual(self.profile.sms_limit, 50) self.assertEqual(self.profile.sms_sent, 0) @@ -93,7 +93,7 @@ class SetPlanTestCase(BaseTestCase): # User's profile should have a higher limits self.profile.refresh_from_db() self.assertEqual(self.profile.ping_log_limit, 1000) - self.assertEqual(self.profile.check_limit, 500) + self.assertEqual(self.profile.check_limit, 1000) self.assertEqual(self.profile.team_limit, 500) self.assertEqual(self.profile.sms_limit, 500) self.assertEqual(self.profile.sms_sent, 0) diff --git a/hc/payments/views.py b/hc/payments/views.py index 2ed71b76..b4335a86 100644 --- a/hc/payments/views.py +++ b/hc/payments/views.py @@ -123,14 +123,14 @@ def set_plan(request): profile = request.user.profile if plan_id in ("P20", "Y192"): profile.ping_log_limit = 1000 - profile.check_limit = 50 + profile.check_limit = 100 profile.team_limit = 9 profile.sms_limit = 50 profile.sms_sent = 0 profile.save() elif plan_id in ("P80", "Y768"): profile.ping_log_limit = 1000 - profile.check_limit = 500 + profile.check_limit = 1000 profile.team_limit = 500 profile.sms_limit = 500 profile.sms_sent = 0 diff --git a/templates/accounts/billing.html b/templates/accounts/billing.html index 73e4a104..44cd2ab9 100644 --- a/templates/accounts/billing.html +++ b/templates/accounts/billing.html @@ -207,7 +207,7 @@ Enjoy free service. -

Standard 50 checks, 10 team members

+

Standard 100 checks, 10 team members