Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
16a7715
1
Parent(s):
642d630
Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,26 @@ import os
|
|
7 |
from dotenv import load_dotenv
|
8 |
import globs
|
9 |
from flask import render_template
|
|
|
|
|
10 |
from api_logic import api
|
|
|
|
|
11 |
|
12 |
|
13 |
|
14 |
load_dotenv()
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
app = flask.Flask(__name__, template_folder="./")
|
17 |
app.config['DEBUG'] = True
|
18 |
|
|
|
7 |
from dotenv import load_dotenv
|
8 |
import globs
|
9 |
from flask import render_template
|
10 |
+
|
11 |
+
|
12 |
from api_logic import api
|
13 |
+
import my_sqlite
|
14 |
+
|
15 |
|
16 |
|
17 |
|
18 |
load_dotenv()
|
19 |
|
20 |
+
|
21 |
+
|
22 |
+
|
23 |
+
# Выполнение кода для создания базы данных и таблицы
|
24 |
+
my_sqlite.create_database_and_table()
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
app = flask.Flask(__name__, template_folder="./")
|
31 |
app.config['DEBUG'] = True
|
32 |
|