Initialize settings
This commit is contained in:
parent
113992f95b
commit
0ded9d3823
2 changed files with 34 additions and 28 deletions
10
web/db.py
10
web/db.py
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue