From 64985f2950dc118038ae280464782619abea4c65 Mon Sep 17 00:00:00 2001 From: gtitov Date: Mon, 14 Nov 2022 14:04:45 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=88=20comment=20out=20print?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e8def8f..886aa20 100644 --- a/main.py +++ b/main.py @@ -31,7 +31,7 @@ with open(QUESTIONS_FILE, "r", encoding="UTF-8") as f: # topics = ["теодолит"] # move topics to VARIABLES # topics_questions = [q for q in all_questions if q.get("topic") in topics] typed_questions = [dict(q, **{"is_multiple": True}) if type(q["answer"]) is list else dict(q, **{"is_multiple": False}) for q in all_questions] - print(typed_questions) + # print(typed_questions) remove_keys = ["author", "answer", "topic"] quiz_questions = [{key: value for key, value in q.items() if key not in remove_keys} for q in typed_questions] # all_questions can be replaced with topic_questions