From 7ddfc2e4513703c0f06c6c55057c813ba8dc2bb0 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Thu, 15 Oct 2026 17:01:55 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20ChooseWord=20/next:=20time=5Flimit=20+?= =?UTF-8?q?=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/wordquiz.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/routers/wordquiz.py b/routers/wordquiz.py index 1e4a30a..8f20d33 100644 --- a/routers/wordquiz.py +++ b/routers/wordquiz.py @@ -113,20 +113,14 @@ async def get_next_quiz(request: Request): options = wrong_options + [correct_polish] random.shuffle(options) - if total_guessed <= 10: - difficulty = "easy" - elif total_guessed <= 30: - difficulty = "medium" - elif total_guessed <= 60: - difficulty = "hard" - else: - difficulty = "expert" + time_limit = 10 if difficulty == "hard" else None return { "correct_polish": correct_polish, "translation": translation, "options": options, "difficulty": difficulty, + "time_limit": time_limit, }