блоки 2 и 3 доработки интерфейса системы тестирования
This commit is contained in:
@@ -69,6 +69,12 @@ def create_app() -> Flask:
|
||||
app.register_blueprint(tests_bp)
|
||||
app.register_blueprint(settings_bp)
|
||||
|
||||
from . import db as _db
|
||||
|
||||
@app.teardown_appcontext
|
||||
def _shutdown_session(exc): # noqa: ARG001
|
||||
_db.remove_session()
|
||||
|
||||
from .config import is_assignment_feature_enabled, is_dev_ui, is_hr_auth_enabled
|
||||
from .auth.decorators import current_user as _current_user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user