Fix typo in function name

This commit is contained in:
Rebecca Law
2020-02-17 11:12:54 +00:00
parent 42f02c8c24
commit 49533d7792
3 changed files with 4 additions and 3 deletions

View File

@@ -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.

View File

@@ -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),

View File

@@ -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