mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
10 lines
295 B
Python
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)
|