This commit is contained in:
Kenneth Kehl
2023-05-01 13:41:48 -07:00
parent be04edd04a
commit 0dce30bf5e
5 changed files with 6 additions and 7 deletions

View File

@@ -267,7 +267,7 @@ class Config(object):
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
DAILY_MESSAGE_LIMIT = 5000
TOTAL_MESSAGE_LIMIT = 7
TOTAL_MESSAGE_LIMIT = 250000
HIGH_VOLUME_SERVICE = json.loads(getenv('HIGH_VOLUME_SERVICE', '[]'))

View File

@@ -435,8 +435,7 @@ class Service(db.Model, Versioned):
onupdate=datetime.datetime.utcnow)
active = db.Column(db.Boolean, index=False, unique=False, nullable=False, default=True)
message_limit = db.Column(db.BigInteger, index=False, unique=False, nullable=False)
# TODO nullable if we are adding it late?
total_message_limit = db.Column(db.BigInteger, index=False, unique=False, nullable=False, default=7)
total_message_limit = db.Column(db.BigInteger, index=False, unique=False, nullable=False)
restricted = db.Column(db.Boolean, index=False, unique=False, nullable=False)
research_mode = db.Column(db.Boolean, index=False, unique=False, nullable=False, default=False)
email_from = db.Column(db.Text, index=False, unique=True, nullable=False)

View File

@@ -1,4 +1,3 @@
from flask import current_app
from sqlalchemy.orm.exc import NoResultFound
from app.config import QueueNames