Files
notifications-api/app/dao/provider_rates_dao.py
Nicholas Staples 3b1423a2ea Provider Statistics added.
Rates command added with a test.

Updated to include added migration.
2016-04-21 13:47:04 +01:00

10 lines
295 B
Python

from app.models import ProviderRates
from app import db
from app.dao.dao_utils import transactional
@transactional
def create_provider_rates(provider, valid_from, rate):
provider_rates = ProviderRates(provider=provider, valid_from=valid_from, rate=rate)
db.session.add(provider_rates)