Добавление нового типа пользователя + исправления из второй лабы

This commit is contained in:
Anton Kamalov
2024-11-04 21:01:39 +03:00
parent af6860446b
commit b0924ae0bc
10 changed files with 41 additions and 37 deletions

View File

@@ -7,6 +7,9 @@ import os, json
app = Flask(__name__)
app.secret_key = 'suplex'
# app.config.from_file(os.path.join(os.path.dirname(__file__), 'data/db_access.json'), load=json.load)
# app.config.from_file(os.path.join(os.path.dirname(__file__), 'data/config.json'), load=json.load)
with open(os.path.join(os.path.dirname(__file__), 'data/db_access.json')) as f:
app.config['db_access'] = json.load(f)
with open(os.path.join(os.path.dirname(__file__), 'data/config.json')) as f: