mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
add some debug around report generation
This commit is contained in:
@@ -64,7 +64,9 @@ def get_notification_by_id(notification_id):
|
||||
|
||||
@notifications.route("/notifications", methods=["GET"])
|
||||
def get_all_notifications():
|
||||
current_app.logger.debug(f"enter get_all_notifications()")
|
||||
data = notifications_filter_schema.load(request.args)
|
||||
current_app.logger.debug(f"get_all_notifications() data {data} request.args {request.args}")
|
||||
|
||||
include_jobs = data.get("include_jobs", False)
|
||||
page = data.get("page", 1)
|
||||
@@ -96,8 +98,7 @@ def get_all_notifications():
|
||||
notification.to = recipient
|
||||
notification.normalised_to = recipient
|
||||
|
||||
return (
|
||||
jsonify(
|
||||
result = jsonify(
|
||||
notifications=notification_with_personalisation_schema.dump(
|
||||
pagination.items, many=True
|
||||
),
|
||||
@@ -106,9 +107,10 @@ def get_all_notifications():
|
||||
links=pagination_links(
|
||||
pagination, ".get_all_notifications", **request.args.to_dict()
|
||||
),
|
||||
),
|
||||
200,
|
||||
)
|
||||
)
|
||||
current_app.logger.debug(f"result={result}")
|
||||
return result,200
|
||||
|
||||
|
||||
|
||||
@notifications.route("/notifications/<string:notification_type>", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user