mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-03-01 15:52:30 +00:00
Update models.py
This commit is contained in:
@@ -133,7 +133,6 @@ class Subscription(Base):
|
||||
|
||||
@property
|
||||
def is_active(self) -> bool:
|
||||
"""Проверяет, действительно ли подписка активна (и по статусу, и по времени)"""
|
||||
current_time = datetime.utcnow()
|
||||
return (
|
||||
self.status == SubscriptionStatus.ACTIVE.value and
|
||||
@@ -147,7 +146,6 @@ class Subscription(Base):
|
||||
|
||||
@property
|
||||
def should_be_expired(self) -> bool:
|
||||
"""Проверяет, должна ли подписка быть помечена как истёкшая"""
|
||||
current_time = datetime.utcnow()
|
||||
return (
|
||||
self.status == SubscriptionStatus.ACTIVE.value and
|
||||
|
||||
Reference in New Issue
Block a user