Skip to content

Commit c3ac021

Browse files
authored
Merge pull request #1779 from GSA/main
06/16/2025 Production Deploy
2 parents 903602f + bd0d34e commit c3ac021

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

app/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class Config(object):
340340

341341
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
342342

343-
TOTAL_MESSAGE_LIMIT = 100000
343+
TOTAL_MESSAGE_LIMIT = 5000000
344344

345345
DAILY_MESSAGE_LIMIT = notifications_utils.DAILY_MESSAGE_LIMIT
346346

app/dao/notifications_dao.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ def dao_get_notification_count_for_service(*, service_id):
305305

306306

307307
def dao_get_notification_count_for_service_message_ratio(service_id, current_year):
308-
start_date = datetime(current_year, 1, 1)
309-
end_date = datetime(current_year + 1, 1, 1)
308+
start_date = datetime(current_year, 6, 16)
309+
end_date = datetime(current_year + 1, 6, 16)
310310
stmt1 = (
311311
select(func.count())
312312
.select_from(Notification)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
3+
Revision ID: 0417_change_total_message_limit
4+
Revises: 0416_readd_e2e_test_user
5+
Create Date: 2025-06-12 11:35:22.873930
6+
7+
"""
8+
9+
import sqlalchemy as sa
10+
from alembic import op
11+
12+
down_revision = "0416_readd_e2e_test_user"
13+
revision = "0417_change_total_message_limit"
14+
15+
16+
def upgrade():
17+
op.execute(
18+
"UPDATE services set total_message_limit=5000000 where total_message_limit=100000"
19+
)
20+
21+
22+
def downgrade():
23+
op.execute(
24+
"UPDATE services set total_message_limit=100000 where total_message_limit=5000000"
25+
)

0 commit comments

Comments
 (0)