From 0e9760c2912f5f26fedbb1372122adb8a9b7cb9a Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 5 Aug 2025 09:01:41 -0700 Subject: [PATCH] clean up --- app/service/rest.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/service/rest.py b/app/service/rest.py index 87394fe3c..f479212d7 100644 --- a/app/service/rest.py +++ b/app/service/rest.py @@ -567,12 +567,14 @@ def generate_notifications_report( include_one_off=include_one_off, ) current_app.logger.debug(f"Query complete at {int(time.time()-start_time)*1000}") - + current_app.logger.debug(f"HOW MANY ITEMS IN PAGINATION? {len(pagination.items)}") + count = 1 for notification in pagination.items: if notification.job_id is not None: current_app.logger.debug( - f"Processing job_id {notification.job_id} at {int(time.time()-start_time)*1000}" + f"Processing job_id {notification.job_id} which is row {count}" ) + count = count + 1 notification.personalisation = get_personalisation_from_s3( notification.service_id, notification.job_id, @@ -638,7 +640,7 @@ def generate_notifications_report( @service_blueprint.route( - "//notifications-report", methods=["GET", "POST"] + "//notifications", methods=["GET", "POST"] ) def get_notifications_report_for_service(service_id): current_app.logger.debug(hilite("ENTER GET ALL NOTIFICATIONS FOR SERVICE@")) @@ -660,7 +662,7 @@ def get_notifications_report_for_service(service_id): return jsonify({"report_id": report_id}), 200 -@service_blueprint.route("//notifications", methods=["GET", "POST"]) +@service_blueprint.route("//notificationsx", methods=["GET", "POST"]) def get_all_notifications_for_service(service_id): check_suspicious_id(service_id) current_app.logger.debug("enter get_all_notifications_for_service")