Я случайно букву поставил в репозитории и убрал self из db_manager

This commit is contained in:
root
2025-11-27 19:52:48 +03:00
parent a001694608
commit 6a701da4f7
2 changed files with 3 additions and 2 deletions

View File

@@ -242,7 +242,8 @@ class DatabaseManager:
"""
return ''.join(random.choices(string.ascii_lowercase + string.digits, k=length))
def _is_subscription_expired(self, expire_timestamp: int) -> bool:
@staticmethod
def _is_subscription_expired(expire_timestamp: int) -> bool:
"""Проверяет, истекла ли подписка"""
current_time = datetime.now(timezone.utc)