diff --git a/apps/backend/subscription/tools.py b/apps/backend/subscription/tools.py index c79d27c5c..7914f2c38 100644 --- a/apps/backend/subscription/tools.py +++ b/apps/backend/subscription/tools.py @@ -893,7 +893,7 @@ def get_instances_by_scope_with_checker( return get_instances_by_scope(scope, *args, **kwargs) -# @support_multi_biz +@support_multi_biz @SetupObserve(histogram=metrics.app_task_get_instances_by_scope_duration_seconds, get_labels_func=get_scope_labels_func) @FuncCacheDecorator(cache_time=SUBSCRIPTION_SCOPE_CACHE_TIME) def get_instances_by_scope(scope: Dict[str, Union[Dict, int, Any]]) -> Dict[str, Dict[str, Union[Dict, Any]]]: diff --git a/common/api/base.py b/common/api/base.py index afe3af000..b2143901a 100644 --- a/common/api/base.py +++ b/common/api/base.py @@ -203,15 +203,13 @@ def __call__( use_admin=False, headers=None, url=None, - format_kwargs=None + format_kwargs=None, ): """ 调用传参 @param {Boolean} raw 是否返回原始内容 """ - if format_kwargs: - self.url = self.url.format(**format_kwargs) if params is None: params = {} if headers is None: