mirror of
https://github.com/Llloooggg/Jarvis.git
synced 2026-03-06 03:56:23 +03:00
Рефракторинг
This commit is contained in:
@@ -5,12 +5,11 @@ import os
|
||||
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'):
|
||||
db_routing.db.create_all()
|
||||
|
||||
app = Flask('Jarvis', static_folder='static', template_folder='templates')
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db'
|
||||
auth = HTTPBasicAuth()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user