add init command

event-logs
lza_menace 4 years ago
parent e8e97c9f1c
commit 6d9abe3a6d

@ -77,6 +77,11 @@ def create_app():
user.clear_wallet_data()
print(f'Wallet data cleared for user {user.id}')
@app.cli.command('init')
def init():
import wowstash.models
db.create_all()
# Routes/blueprints
from wowstash.blueprints.auth import auth_bp
from wowstash.blueprints.wallet import wallet_bp

Loading…
Cancel
Save