Skip to content

Commit

Permalink
fix: return type in weights request (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina authored Oct 25, 2024
1 parent 6a9a07d commit 04d1fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/ceramic_cache/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 04d1fff

Please sign in to comment.