mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 18:38:14 -04:00
Provider Statistics added.
Rates command added with a test. Updated to include added migration.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user