This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
from dataclasses import dataclass
|
||||
from typing import ClassVar, Optional
|
||||
from typing import ClassVar
|
||||
|
||||
from services.redis import redis
|
||||
from utils.logger import root_logger as logger
|
||||
@@ -292,7 +292,7 @@ class EnvService:
|
||||
logger.error(f"Ошибка при удалении переменной {key}: {e}")
|
||||
return False
|
||||
|
||||
async def get_variable(self, key: str) -> Optional[str]:
|
||||
async def get_variable(self, key: str) -> str | None:
|
||||
"""Получает значение конкретной переменной"""
|
||||
|
||||
# Сначала проверяем Redis
|
||||
|
||||
Reference in New Issue
Block a user