|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import click
|
|
|
|
|
from flask import Flask
|
|
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
|
from flask_wtf.csrf import CSRFProtect
|
|
|
|
@ -68,6 +69,14 @@ def create_app():
|
|
|
|
|
from wowstash.library.docker import docker
|
|
|
|
|
docker.cleanup()
|
|
|
|
|
|
|
|
|
|
@app.cli.command('reset_wallet')
|
|
|
|
|
@click.argument('user_id')
|
|
|
|
|
def reset_wallet(user_id):
|
|
|
|
|
from wowstash.models import User
|
|
|
|
|
user = User.query.get(user_id)
|
|
|
|
|
user.clear_wallet_data()
|
|
|
|
|
print(f'Wallet data cleared for user {user.id}')
|
|
|
|
|
|
|
|
|
|
# Routes/blueprints
|
|
|
|
|
from wowstash.blueprints.auth import auth_bp
|
|
|
|
|
from wowstash.blueprints.wallet import wallet_bp
|
|
|
|
|