Skip to content

Commit

Permalink
try to remove parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bolyachevets committed Dec 18, 2024
1 parent adbd935 commit 5166695
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions jobs/bad-name-notifier/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
def create_app(config_name="default"):
"""Creates and configures the Flask app."""

"""Note: CSRF protection is disabled because this is not a web application.
The app does not handle user-submitted data, forms, or sessions, and is
used as a background service or job.
"""
app = Flask(__name__)
# NOSONAR
app.config['WTF_CSRF_ENABLED'] = False # Explicitly disable CSRF
app.config.from_object(APP_CONFIG[config_name])
print(app.config)
return app
Expand Down

0 comments on commit 5166695

Please sign in to comment.