Skip to content

Commit

Permalink
fix: map to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Aug 23, 2024
1 parent b65de5c commit acca188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new_api/v3/data_handlers/map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_map(parcellation_id: str, space_id: str, maptype: Union[MapType, str], e

if len(returned_maps) == 0:
raise NotFound(f"get_map with spec {parcellation_id=!r}, {space_id=!r}, {maptype=!r}, {extra_spec=!r} found no map.")
return instance_to_model(returned_maps[0], detail=True)
return instance_to_model(returned_maps[0], detail=True).dict()

@data_decorator(ROLE)
def statistical_map_nii_gz(parcellation_id: str, space_id: str, region_id: str, extra_spec: str, *, no_cache: bool):
Expand Down

0 comments on commit acca188

Please sign in to comment.