Compare commits

..

4 Commits

Author SHA1 Message Date
Kenneth Kehl
bd0d34e96e Merge pull request #1757 from GSA/change_message_count
change message limit
2025-06-13 07:01:56 -07:00
Kenneth Kehl
4adef2d4c7 change message limit on existing services 2025-06-12 14:05:00 -07:00
Kenneth Kehl
dcc916b6ee merge from main 2025-06-10 07:10:18 -07:00
Kenneth Kehl
5f0c72df1d change message limit 2025-06-06 09:18:07 -07:00
3 changed files with 28 additions and 3 deletions

View File

@@ -340,7 +340,7 @@ class Config(object):
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
TOTAL_MESSAGE_LIMIT = 100000
TOTAL_MESSAGE_LIMIT = 5000000
DAILY_MESSAGE_LIMIT = notifications_utils.DAILY_MESSAGE_LIMIT

View File

@@ -305,8 +305,8 @@ def dao_get_notification_count_for_service(*, service_id):
def dao_get_notification_count_for_service_message_ratio(service_id, current_year):
start_date = datetime(current_year, 1, 1)
end_date = datetime(current_year + 1, 1, 1)
start_date = datetime(current_year, 6, 16)
end_date = datetime(current_year + 1, 6, 16)
stmt1 = (
select(func.count())
.select_from(Notification)

View File

@@ -0,0 +1,25 @@
"""
Revision ID: 0417_change_total_message_limit
Revises: 0416_readd_e2e_test_user
Create Date: 2025-06-12 11:35:22.873930
"""
import sqlalchemy as sa
from alembic import op
down_revision = "0416_readd_e2e_test_user"
revision = "0417_change_total_message_limit"
def upgrade():
op.execute(
"UPDATE services set total_message_limit=5000000 where total_message_limit=100000"
)
def downgrade():
op.execute(
"UPDATE services set total_message_limit=100000 where total_message_limit=5000000"
)