mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-31 19:53:58 -04:00
Compare commits
6 Commits
eb50ca7554
...
06-16-2025
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd0d34e96e | ||
|
|
4adef2d4c7 | ||
|
|
26b94b82bc | ||
|
|
eda0612561 | ||
|
|
dcc916b6ee | ||
|
|
5f0c72df1d |
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
25
migrations/versions/0417_change_total_message_limit.py
Normal file
25
migrations/versions/0417_change_total_message_limit.py
Normal 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"
|
||||
)
|
||||
8
poetry.lock
generated
8
poetry.lock
generated
@@ -1407,14 +1407,14 @@ tests = ["coverage", "coveralls", "dill", "mock", "nose"]
|
||||
|
||||
[[package]]
|
||||
name = "faker"
|
||||
version = "37.3.0"
|
||||
version = "37.4.0"
|
||||
description = "Faker is a Python package that generates fake data for you."
|
||||
optional = false
|
||||
python-versions = ">=3.9"
|
||||
groups = ["main"]
|
||||
files = [
|
||||
{file = "faker-37.3.0-py3-none-any.whl", hash = "sha256:48c94daa16a432f2d2bc803c7ff602509699fca228d13e97e379cd860a7e216e"},
|
||||
{file = "faker-37.3.0.tar.gz", hash = "sha256:77b79e7a2228d57175133af0bbcdd26dc623df81db390ee52f5104d46c010f2f"},
|
||||
{file = "faker-37.4.0-py3-none-any.whl", hash = "sha256:cb81c09ebe06c32a10971d1bbdb264bb0e22b59af59548f011ac4809556ce533"},
|
||||
{file = "faker-37.4.0.tar.gz", hash = "sha256:7f69d579588c23d5ce671f3fa872654ede0e67047820255f43a4aa1925b89780"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -5587,4 +5587,4 @@ cffi = ["cffi (>=1.11)"]
|
||||
[metadata]
|
||||
lock-version = "2.1"
|
||||
python-versions = "^3.12.2"
|
||||
content-hash = "c965d17cdc92181a8b6cce13218edaf8fae0444a1f0815a7132f305a1b1383a9"
|
||||
content-hash = "c33fc9597a1f32253ff108478bc201374dd834effbae4b8fbbccc7a5140b3a18"
|
||||
|
||||
@@ -47,7 +47,7 @@ pyjwt = "==2.10.1"
|
||||
python-dotenv = "==1.1.0"
|
||||
sqlalchemy = "==2.0.41"
|
||||
werkzeug = "^3.0.6"
|
||||
faker = "^37.3.0"
|
||||
faker = "^37.4.0"
|
||||
async-timeout = "^5.0.1"
|
||||
bleach = "^6.1.0"
|
||||
geojson = "^3.2.0"
|
||||
|
||||
Reference in New Issue
Block a user