mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-15 17:44:03 -05:00
isort and flake8
This commit is contained in:
@@ -151,7 +151,7 @@
|
|||||||
"filename": "app/config.py",
|
"filename": "app/config.py",
|
||||||
"hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc",
|
"hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc",
|
||||||
"is_verified": false,
|
"is_verified": false,
|
||||||
"line_number": 121,
|
"line_number": 120,
|
||||||
"is_secret": false
|
"is_secret": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -674,5 +674,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"generated_at": "2025-04-10T19:35:01Z"
|
"generated_at": "2025-04-10T19:38:31Z"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ def _csp(config):
|
|||||||
def create_app(application):
|
def create_app(application):
|
||||||
@application.context_processor
|
@application.context_processor
|
||||||
def inject_feature_flags():
|
def inject_feature_flags():
|
||||||
# this is where feature flags can be easily added as a dictionary within context
|
# this is where feature flags can be easily added as a dictionary within context
|
||||||
feature_socket_enabled = application.config.get(
|
feature_socket_enabled = application.config.get(
|
||||||
"FEATURE_SOCKET_ENABLED", False
|
"FEATURE_SOCKET_ENABLED", False
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ class Config(object):
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FEATURE_SOCKET_ENABLED = getenv("FEATURE_SOCKET_ENABLED", "false") == "true"
|
FEATURE_SOCKET_ENABLED = getenv("FEATURE_SOCKET_ENABLED", "false") == "true"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ from functools import partial
|
|||||||
|
|
||||||
from flask import (
|
from flask import (
|
||||||
Response,
|
Response,
|
||||||
current_app,
|
|
||||||
abort,
|
abort,
|
||||||
|
current_app,
|
||||||
jsonify,
|
jsonify,
|
||||||
redirect,
|
redirect,
|
||||||
render_template,
|
render_template,
|
||||||
|
|||||||
Reference in New Issue
Block a user