fix: key_utils.py
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user