From 08fae816579e8a2aa6defc844983190646acb93f Mon Sep 17 00:00:00 2001 From: gtitov Date: Thu, 10 Nov 2022 20:05:00 +0300 Subject: [PATCH] add todo --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 884ad4d..1e36025 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,7 @@ app.add_middleware( # CORS # open files once and use variables after with open(QUESTIONS_FILE, "r", encoding="UTF-8") as f: content = json.load(f) + # TODO reassign questions id since mistakes are possible and checking is based on id all_questions = content["questions"] # if you want to use topics 1) filter all questions with topics 2) use topic questions to construct quiz_questions (when removing service keys from all_questions dict) # topics = ["теодолит"] # move topics to VARIABLES