fix: разделение клиентов — сервисы из real API, инстансы/операции из polygon (v1.2.28)
This commit is contained in:
@@ -31,7 +31,7 @@ import json
|
||||
import fcntl
|
||||
|
||||
from api.http_client import HttpClient, detect_endpoint, stand_name
|
||||
from api.auth import get_token, get_client, get_client_id, get_stand, get_token_info
|
||||
from api.auth import get_token, get_client, get_real_client, get_client_id, get_stand, get_token_info
|
||||
from api.utils import find_uid, uid_from_location
|
||||
from operations.get_services import get_services, get_service_detail
|
||||
from operations.get_instances import get_instances
|
||||
@@ -103,7 +103,7 @@ def _unique_display_name(client, requested_name):
|
||||
@bp.route("/api/services")
|
||||
def api_services():
|
||||
try:
|
||||
raw = get_services(get_client())
|
||||
raw = get_services(get_real_client())
|
||||
svc_list = [{"svcId": s["svcId"], "svc": s["svc"], "svcExtendedName": s.get("svcExtendedName", "")} for s in raw]
|
||||
svc_list.sort(key=lambda s: s["svcId"])
|
||||
return jsonify(svc_list)
|
||||
|
||||
Reference in New Issue
Block a user