From df3d32ecd51f5f522932557ac5024ce1413cd1c1 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Tue, 13 Oct 2026 11:20:29 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20=D0=A1=D0=B8=D0=B3=D0=BD=D0=B0=D1=82?= =?UTF-8?q?=D1=83=D1=80=D0=B0=20award=5Fxp:=20stars=20=E2=86=92=20points?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/xp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/xp.py b/services/xp.py index 894fd32..124dd7a 100644 --- a/services/xp.py +++ b/services/xp.py @@ -183,7 +183,7 @@ async def award_xp( conn, user_id: int, game: str, - stars: int, + points: int, ) -> dict: """ Единая функция начисления опыта. @@ -192,11 +192,10 @@ async def award_xp( conn: asyncpg connection (уже acquired) user_id: telegram_id (может быть отрицательным для Pleily) game: 'wordsearch' | 'choose' | 'sentence' | 'bubbles' - stars: 1..5 + points: готовые очки за уровень (20–110), формула считается до вызова Returns: { - "stars": int, "base_points": int, "multiplier": float, "points": int,