mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
Merge pull request #1042 from GSA/fix-debug-statement
Fix debug statement
This commit is contained in:
@@ -472,7 +472,12 @@ def get_all_notifications_for_service(service_id):
|
|||||||
pagination.items, many=True
|
pagination.items, many=True
|
||||||
)
|
)
|
||||||
current_app.logger.debug(f"number of notifications are {len(notifications)}")
|
current_app.logger.debug(f"number of notifications are {len(notifications)}")
|
||||||
current_app.logger.debug(f"first notification is {notifications[0]}")
|
|
||||||
|
if len(notifications) > 0:
|
||||||
|
current_app.logger.debug(f"first notification is {notifications[0]}")
|
||||||
|
else:
|
||||||
|
current_app.logger.debug("there are no notifications to show")
|
||||||
|
|
||||||
# We try and get the next page of results to work out if we need provide a pagination link to the next page
|
# We try and get the next page of results to work out if we need provide a pagination link to the next page
|
||||||
# in our response if it exists. Note, this could be done instead by changing `count_pages` in the previous
|
# in our response if it exists. Note, this could be done instead by changing `count_pages` in the previous
|
||||||
# call to be True which will enable us to use Flask-Sqlalchemy to tell if there is a next page of results but
|
# call to be True which will enable us to use Flask-Sqlalchemy to tell if there is a next page of results but
|
||||||
|
|||||||
Reference in New Issue
Block a user