добавил подсчёт количества рефералов
This commit is contained in:
@@ -61,6 +61,18 @@ class DatabaseManager:
|
||||
"""
|
||||
return await self.postgres_repo.get_last_transactions(telegram_id, limit)
|
||||
|
||||
async def get_referrals_count(self,telegram_id: int) -> int:
|
||||
"""
|
||||
Docstring for get_referrals_count
|
||||
|
||||
:param self: Description
|
||||
:param telegram_id: Description
|
||||
:type telegram_id: int
|
||||
:return: Description
|
||||
:rtype: int
|
||||
"""
|
||||
return await self.postgres_repo.get_referrals_count(telegram_id)
|
||||
|
||||
# async def update_balance(self, telegram_id: int, amount: float):
|
||||
# """
|
||||
# Обновляет баланс пользователя и добавляет транзакцию.
|
||||
|
||||
Reference in New Issue
Block a user