try to fix dynamic scan warnings

This commit is contained in:
Kenneth Kehl
2025-02-03 07:56:30 -08:00
parent 10b0ce76de
commit ec02da930b
2 changed files with 11 additions and 1 deletions

View File

@@ -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)

View File

@@ -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)