Рефракторинг

This commit is contained in:
2020-03-15 15:57:13 +03:00
parent b8c734530b
commit 45cf0ca0ee

View File

@@ -5,12 +5,11 @@ import os
import hashlib import hashlib
app = Flask(__name__, static_folder='static', template_folder='templates')
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db'
if not os.path.exists('./data.db'): if not os.path.exists('./data.db'):
db_routing.db.create_all() db_routing.db.create_all()
app = Flask('Jarvis', static_folder='static', template_folder='templates')
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db'
auth = HTTPBasicAuth() auth = HTTPBasicAuth()