feat: add admin user management
This commit is contained in:
@@ -8,6 +8,7 @@ from .cli import register_cli, seed_badges
|
||||
from .extensions import csrf, db, login_manager
|
||||
from .routes import auth, main, scoreboard, settings, tasks
|
||||
from .routes.main import load_icon_svg
|
||||
from .services.bootstrap import ensure_schema_and_admins
|
||||
from .services.dates import MONTH_NAMES, local_now
|
||||
from .services.monthly import archive_months_missing_up_to_previous
|
||||
|
||||
@@ -25,6 +26,7 @@ def create_app(config_class: type[Config] = Config) -> Flask:
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
ensure_schema_and_admins()
|
||||
seed_badges()
|
||||
|
||||
register_cli(app)
|
||||
|
||||
Reference in New Issue
Block a user