calculate billable units when sending an sms

don't calculate it if we're in research mode
* added tests to prove this
* removed last code referring to content_char_count
This commit is contained in:
Leo Hemsted
2016-08-03 16:26:11 +01:00
parent 2793541b9c
commit 527a5c4eaa
9 changed files with 47 additions and 37 deletions

View File

@@ -15,10 +15,6 @@ import sqlalchemy as sa
from sqlalchemy.orm.session import Session
from app.models import Service
import logging
logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
def upgrade():
op.add_column('notifications', sa.Column('billable_units', sa.Integer()))