now scanning model difinietons and updating db entries
This commit is contained in:
@@ -7,7 +7,7 @@ import ssl
|
||||
|
||||
from jinja2.exceptions import TemplateNotFound
|
||||
|
||||
from backend import app
|
||||
from backend import app, db
|
||||
|
||||
|
||||
def main():
|
||||
@@ -23,6 +23,12 @@ def main():
|
||||
except FileNotFoundError:
|
||||
app.run(debug=True, threaded=True)
|
||||
|
||||
try:
|
||||
db.create_all()
|
||||
except Exception as e:
|
||||
logging.CRITICAL(e)
|
||||
|
||||
|
||||
app.run(debug=True)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user