mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
try to fix dynamic scan warnings
This commit is contained in:
@@ -286,6 +286,11 @@ def init_app(app):
|
||||
@app.after_request
|
||||
def after_request(response):
|
||||
response.headers.add("X-Content-Type-Options", "nosniff")
|
||||
response.headers.add("Cross-Origin-Opener-Policy", "same-origin")
|
||||
response.headers.add("Cross-Origin-Embedder-Policy", "require-corp")
|
||||
response.headers.add("Cross-Origin-Resource-Policy", "same-origin")
|
||||
response.headers.add("Cross-Origin-Opener-Policy", "same-origin")
|
||||
|
||||
return response
|
||||
|
||||
@app.errorhandler(Exception)
|
||||
|
||||
@@ -694,7 +694,12 @@ def get_single_month_notification_stats_by_user(service_id, user_id):
|
||||
service_id, start_date, end_date, user_id
|
||||
)
|
||||
|
||||
stats = get_specific_days_stats(results, start_date, end_date=end_date, total_notifications=total_notifications,)
|
||||
stats = get_specific_days_stats(
|
||||
results,
|
||||
start_date,
|
||||
end_date=end_date,
|
||||
total_notifications=total_notifications,
|
||||
)
|
||||
return jsonify(stats)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user