Skip to content

Commit

Permalink
exclude none fields instead of unset fields (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Oct 27, 2023
1 parent fa42362 commit 7d6dd41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/svi_client/src/hydrotools/svi_client/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7d6dd41

Please sign in to comment.