fix: key_utils.py

This commit is contained in:
Capybara-z
2025-05-28 01:18:58 +03:00
parent ffb6d5f99e
commit 723474e150
2 changed files with 2 additions and 4 deletions
-3
View File
@@ -5,7 +5,6 @@ from typing import Any
from sqlalchemy import delete, select
from sqlalchemy.ext.asyncio import AsyncSession
from config import PUBLIC_LINK, REMNAWAVE_LOGIN, REMNAWAVE_PASSWORD, SUPERNODE, TRIAL_CONFIG
from config import PUBLIC_LINK, REMNAWAVE_LOGIN, REMNAWAVE_PASSWORD, SUPERNODE, TRIAL_CONFIG
from database import delete_notification, get_servers, get_tariff_by_id, store_key
from database.models import Key, Server, Tariff
@@ -164,7 +163,6 @@ async def create_key_on_cluster(
plan=plan,
session=session,
is_trial=is_trial,
is_trial=is_trial,
)
else:
await asyncio.gather(
@@ -179,7 +177,6 @@ async def create_key_on_cluster(
plan=plan,
session=session,
is_trial=is_trial,
is_trial=is_trial,
)
for server in xui_servers
],
@@ -597,4 +597,5 @@ async def process_auto_renew_or_notify(
)
except Exception as e:
logger.error(f"❌ Ошибка в process_auto_renew_or_notify: {e}")
logger.error(f"❌ Ошибка в process_auto_renew_or_notify: {e}")