From 45cf0ca0eec827b7dee17e0466105f630654d6c0 Mon Sep 17 00:00:00 2001 From: burzuf Date: Sun, 15 Mar 2020 15:57:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D1=80=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/__init__.py b/__init__.py index a0eb807..2bc514c 100644 --- a/__init__.py +++ b/__init__.py @@ -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()