mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
add billable_units column to notifications table
this replaces content_char_count, by performing the additional steps to calculated billable units at insert time, rather than read time. This means we can take into account whether the service was in research mode or using a test api key when the notification was sent :tada
This commit is contained in:
@@ -22,7 +22,6 @@ def get_provider_statistics(service, **kwargs):
|
||||
|
||||
|
||||
def get_fragment_count(service_id):
|
||||
live_dates = get_service_live_dates(service_id)
|
||||
shared_filters = [
|
||||
NotificationHistory.service_id == service_id,
|
||||
NotificationHistory.status.in_(NOTIFICATION_STATUS_TYPES_BILLABLE),
|
||||
|
||||
Reference in New Issue
Block a user