[Eva] Отключён лимит AI-запросов учителя (тестирование)

This commit is contained in:
2026-11-03 18:17:40 +00:00
parent 9f92995522
commit 32e250ddae
+2 -3
View File
@@ -114,10 +114,9 @@ async def increment_teacher_ai_usage(conn, user_id: int) -> None:
async def check_ai_limit(conn, user_id: int) -> bool: async def check_ai_limit(conn, user_id: int) -> bool:
"""Проверяет, может ли пользователь использовать AI-команду.""" """Проверяет, может ли пользователь использовать AI-команду."""
if user_id in ADMIN_IDS: # 🔧 (03.11.2026): лимит временно отключён — Oleg тестирует раздел.
# Вернём лимит (TEACHER_AI_DAILY_LIMIT) перед запуском для реальных юзеров.
return True return True
usage = await get_teacher_ai_usage(conn, user_id)
return usage < TEACHER_AI_DAILY_LIMIT
async def start_learning_session(conn, user_id: int, level_code: str, topic_id: str, session_type: str) -> int: async def start_learning_session(conn, user_id: int, level_code: str, topic_id: str, session_type: str) -> int: