mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
New db query that returns data about live services
This data includes service and org name, consent to research, contact details and both intended and factual notifications volumes by notification type. This query was created to get data for a csv report for our platform admins.
This commit is contained in:
@@ -49,6 +49,7 @@ from app.dao.services_dao import (
|
||||
dao_create_service,
|
||||
dao_fetch_all_services,
|
||||
dao_fetch_all_services_by_user,
|
||||
dao_fetch_live_services_data,
|
||||
dao_fetch_service_by_id,
|
||||
dao_fetch_todays_stats_for_service,
|
||||
dao_fetch_todays_stats_for_all_services,
|
||||
@@ -158,6 +159,12 @@ def get_services():
|
||||
return jsonify(data=data)
|
||||
|
||||
|
||||
@service_blueprint.route('/live-services-data', methods=['GET'])
|
||||
def get_live_services_data():
|
||||
data = dao_fetch_live_services_data()
|
||||
return jsonify(data=data)
|
||||
|
||||
|
||||
@service_blueprint.route('/<uuid:service_id>', methods=['GET'])
|
||||
def get_service_by_id(service_id):
|
||||
if request.args.get('detailed') == 'True':
|
||||
|
||||
Reference in New Issue
Block a user