Skip to content
Snippets Groups Projects
Commit 8c0843d2 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Merge branch 'development'

parents 518a2451 d4c9ab58
No related branches found
Tags 1.0.0
No related merge requests found
Pipeline #42505 passed
......@@ -99,7 +99,7 @@ def create_app(config: Config = Config) -> Flask:
from .users import bp as users_blueprint
default_breadcrumb_root(users_blueprint, '.users')
app.register_blueprint(users_blueprint, url_prefix='/users')
app.register_blueprint(users_blueprint, cli_group='user', url_prefix='/users')
from .workshops import bp as workshops_blueprint
app.register_blueprint(workshops_blueprint, url_prefix='/workshops')
......
......@@ -15,4 +15,4 @@ def before_request():
pass
from . import events, json_routes, routes, settings
from . import cli, events, json_routes, routes, settings
from app.models import User
import os
import shutil
from app import db
from . import bp
@bp.cli.command('reset')
def reset():
''' Reset terms of use accept '''
for user in [x for x in User.query.all() if x.terms_of_use_accepted]:
print(f'Resetting user {user.username}')
user.terms_of_use_accepted = False
db.session.commit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment