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,