1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Create db directory

This commit is contained in:
Mo 2022-05-07 16:02:23 +02:00
parent a0711f7eaf
commit b5917f85eb

View file

@ -1,10 +1,13 @@
from datetime import date
from os import makedirs
from flask_security import hash_password
from advlabdb import app, db, user_datastore
from advlabdb.models import *
makedirs("db", exist_ok=True)
with app.app_context():
db.drop_all()
db.create_all()