Фильтр донастроил

This commit is contained in:
2025-09-08 15:49:37 +03:00
parent 3ffe547208
commit 802cf5ffba
4 changed files with 32 additions and 7 deletions

View File

@@ -37,6 +37,17 @@ def get_server_info() -> Dict[str, Any]:
return {}
def get_system_ogs() -> Dict[str, Any]:
"""Получение системного списка ОГ из pconfig"""
try:
response = requests.get(f"{API_BASE_URL}/system/ogs")
if response.status_code == 200:
return response.json()
return {"single_ogs": [], "og_ids": {}}
except:
return {"single_ogs": [], "og_ids": {}}
def upload_file_to_api(endpoint: str, file_data: bytes, filename: str) -> Tuple[Dict[str, Any], int]:
"""Загрузка файла на API"""
try: