Initialize settings

This commit is contained in:
Timotej Lazar 2023-01-26 16:11:32 +01:00
parent 113992f95b
commit 0ded9d3823
2 changed files with 34 additions and 28 deletions

View file

@ -46,13 +46,3 @@ def load(name):
def save(name, data):
with locked(name):
write(name, data)
def init_app(app):
#app.teardown_appcontext(close_db)
app.cli.add_command(init_db)
@click.command('init-db')
@flask.cli.with_appcontext
def init_db():
"""Clear the existing data and create new tables."""
pass # TODO, if needed