diff --git a/python/svi_client/src/hydrotools/svi_client/clients.py b/python/svi_client/src/hydrotools/svi_client/clients.py index dc743776..009d1713 100644 --- a/python/svi_client/src/hydrotools/svi_client/clients.py +++ b/python/svi_client/src/hydrotools/svi_client/clients.py @@ -129,7 +129,7 @@ def get( # map of dataset field names to canonical field names field_names = { v: k - for k, v in fnm.dict(exclude_unset=True, exclude={"svi_edition"}).items() + for k, v in fnm.dict(exclude_none=True, exclude={"svi_edition"}).items() } df = df.rename(columns=field_names) diff --git a/python/svi_client/src/hydrotools/svi_client/url_builders.py b/python/svi_client/src/hydrotools/svi_client/url_builders.py index d8cae454..c82b3ae1 100644 --- a/python/svi_client/src/hydrotools/svi_client/url_builders.py +++ b/python/svi_client/src/hydrotools/svi_client/url_builders.py @@ -68,7 +68,7 @@ def build_feature_server_url( if location != "us" else "1=1", "outFields": ",".join( - fnm.dict(exclude_unset=True, exclude={"svi_edition"}).values() + fnm.dict(exclude_none=True, exclude={"svi_edition"}).values() ), "returnGeometry": "true", "returnExceededLimitFeatures": "true",