From 93883a447017511522cb0b3910f1e0c5e1d2d941 Mon Sep 17 00:00:00 2001 From: Dmitry Bikulov Date: Mon, 15 Sep 2025 19:38:36 +0300 Subject: [PATCH] Fix math --- app/main.py | 4 ++-- static/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index b9c740a..f50e088 100644 --- a/app/main.py +++ b/app/main.py @@ -52,7 +52,7 @@ class AnswerResponse(BaseModel): # ----------------- TOTAL_QUESTIONS = 20 -DURATION_SECONDS = 60 +DURATION_SECONDS = 300 class Session: @@ -78,7 +78,7 @@ class Session: @staticmethod def _generate_questions(n: int) -> List[Dict]: # Build unique unordered pairs (avoid mirrored duplicates like 6×8 and 8×6) - all_pairs = [(a, b) for a in range(2, 10) for b in range(a, 10)] # a <= b + all_pairs = [(a, b) for a in range(2, 6) for b in range(a, 6)] # a <= b count = min(n, len(all_pairs)) picked = random.sample(all_pairs, count) diff --git a/static/index.html b/static/index.html index 9871051..b665b81 100644 --- a/static/index.html +++ b/static/index.html @@ -13,7 +13,7 @@

Весёлая тренировка для 2 класса

-
⏱ Время: 60 с
+
⏱ Время: 300 с
Вопрос: 0/20