Исправил много чего в фронте
This commit is contained in:
@@ -93,11 +93,12 @@ async def profile_callback_handler(callback: CallbackQuery):
|
||||
sub_status = "⚫ Нет активных"
|
||||
|
||||
if sub_data:
|
||||
expiry_date = sub_data.get("expiry_date")
|
||||
if expiry_date:
|
||||
end_date_str = sub_data.get("end_date") # Исправил
|
||||
if end_date_str:
|
||||
try:
|
||||
is_expired = datetime.fromisoformat(
|
||||
expiry_date) < datetime.now()
|
||||
is_expired = (
|
||||
datetime.fromisoformat(end_date_str) < datetime.now()
|
||||
)
|
||||
except ValueError:
|
||||
is_expired = True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user