now scanning model difinietons and updating db entries

This commit is contained in:
2019-08-08 16:38:15 +02:00
parent 123eb65f8e
commit c0e56cf40d
12 changed files with 263 additions and 175 deletions

View File

@@ -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)