fix tworzenie admina

This commit is contained in:
Mateusz Gruszczyński
2025-03-07 22:56:28 +01:00
parent 6bd6284f49
commit 79d777d9b3
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,8 @@
from app import app, db
from app import app, db, create_admin_account
from waitress import serve
if __name__ == '__main__':
with app.app_context():
db.create_all()
serve(app, host='0.0.0.0', port=8080)
create_admin_account()
serve(app, host='0.0.0.0', port=8080)