From 04d1fffcd6eb7bbae93620936c705180cd73fa7c Mon Sep 17 00:00:00 2001 From: nutrina <8137830+nutrina@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:36:26 +0300 Subject: [PATCH] fix: return type in weights request (#713) --- api/ceramic_cache/api/v1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ceramic_cache/api/v1.py b/api/ceramic_cache/api/v1.py index 85161af1d..bd9ae7789 100644 --- a/api/ceramic_cache/api/v1.py +++ b/api/ceramic_cache/api/v1.py @@ -381,12 +381,12 @@ class InvalidScorerConfiguration(APIException): default_detail = "Unable to retrieve configured scorer!" -@router.get("weights", response=Dict[str, str]) +@router.get("weights", response=Dict[str, float]) def get_scorer_weights(request): return handle_get_scorer_weights() -def handle_get_scorer_weights(community_id=None) -> Dict[str, str]: +def handle_get_scorer_weights(community_id=None) -> Dict[str, float]: if not community_id: community_id = settings.CERAMIC_CACHE_SCORER_ID