mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Fix typo in function name
This commit is contained in:
@@ -186,6 +186,7 @@ def fetch_letter_line_items_for_all_services(start_date, end_date):
|
|||||||
|
|
||||||
@statsd(namespace="dao")
|
@statsd(namespace="dao")
|
||||||
def fetch_billing_totals_for_year(service_id, year):
|
def fetch_billing_totals_for_year(service_id, year):
|
||||||
|
print("fetch_billing_totals_for_year", year)
|
||||||
year_start_date, year_end_date = get_financial_year(year)
|
year_start_date, year_end_date = get_financial_year(year)
|
||||||
"""
|
"""
|
||||||
Billing for email: only record the total number of emails.
|
Billing for email: only record the total number of emails.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ def dao_get_organisations():
|
|||||||
).all()
|
).all()
|
||||||
|
|
||||||
|
|
||||||
def dao_count_organsations_with_live_services():
|
def dao_count_organisations_with_live_services():
|
||||||
return db.session.query(Organisation.id).join(Organisation.services).filter(
|
return db.session.query(Organisation.id).join(Organisation.services).filter(
|
||||||
Service.active.is_(True),
|
Service.active.is_(True),
|
||||||
Service.restricted.is_(False),
|
Service.restricted.is_(False),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from flask import (
|
|||||||
|
|
||||||
from app import db, version
|
from app import db, version
|
||||||
from app.dao.services_dao import dao_count_live_services
|
from app.dao.services_dao import dao_count_live_services
|
||||||
from app.dao.organisation_dao import dao_count_organsations_with_live_services
|
from app.dao.organisation_dao import dao_count_organisations_with_live_services
|
||||||
|
|
||||||
status = Blueprint('status', __name__)
|
status = Blueprint('status', __name__)
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ def show_status():
|
|||||||
@status.route('/_status/live-service-and-organisation-counts')
|
@status.route('/_status/live-service-and-organisation-counts')
|
||||||
def live_service_and_organisation_counts():
|
def live_service_and_organisation_counts():
|
||||||
return jsonify(
|
return jsonify(
|
||||||
organisations=dao_count_organsations_with_live_services(),
|
organisations=dao_count_organisations_with_live_services(),
|
||||||
services=dao_count_live_services(),
|
services=dao_count_live_services(),
|
||||||
), 200
|
), 200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user