Skip to content

Commit

Permalink
Fix bug in getmetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 11, 2023
1 parent d5b69d6 commit 17a75c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpublish_wms/wms/get_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_metadata(ds: xr.Dataset, cache: cachey.Cache, params: dict) -> Response:
This is compliant subset of ncwms2's GetMetadata handler. Specifically, layerdetails, timesteps and minmax are supported.
"""
layer_name = params.get("layername", None)
metadata_type = params.get("item", "layerdetails")
metadata_type = params.get("item", "layerdetails").lower()

if not layer_name and metadata_type != "minmax" and metadata_type != "menu":
raise HTTPException(
Expand Down

0 comments on commit 17a75c5

Please sign in to comment.