Merge pull request '[Eva] Ева, критичный фикс в wordquiz.py — 500' (#49) from eva/chat-55df46-backend into main
Reviewed-on: #49
This commit was merged in pull request #49.
This commit is contained in:
+2
-2
@@ -76,7 +76,7 @@ async def get_next_quiz(request: Request):
|
||||
FROM csv_words
|
||||
WHERE level_code = $1 AND word_pl != $2 AND word_pl NOT IN ({placeholders})
|
||||
ORDER BY RANDOM()
|
||||
LIMIT (wrong_count + 1)
|
||||
LIMIT 5
|
||||
""", current_level, correct_polish, *exclude_for_wrong)
|
||||
|
||||
if len(wrong_words) < wrong_count:
|
||||
@@ -86,7 +86,7 @@ async def get_next_quiz(request: Request):
|
||||
FROM csv_words
|
||||
WHERE level_code = $1 AND word_pl != $2
|
||||
ORDER BY RANDOM()
|
||||
LIMIT (wrong_count + 1)
|
||||
LIMIT 5
|
||||
""", current_level, correct_polish)
|
||||
|
||||
wrong_options = []
|
||||
|
||||
Reference in New Issue
Block a user