Skip to content

Commit

Permalink
Fix: Properly handle listification
Browse files Browse the repository at this point in the history
1. Lists as value in short form of map will now
be correctly handled during listification.
2. Bump version
  • Loading branch information
kghose committed Sep 4, 2020
1 parent 9460bc1 commit 6e3d2ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sbpack/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def normalize_to_list(obj: Union[list, dict], key_field: str, value_field: str):
elif isinstance(obj, dict):
map_list = []
for k, v in obj.items():
if isinstance(v, str):
if not isinstance(v, dict):
if value_field is None:
raise RuntimeError(f"Expecting a dict here, got {v}")
v = {value_field: v}
Expand Down
2 changes: 1 addition & 1 deletion sbpack/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2020.06.18"
__version__ = "2020.09.04"

0 comments on commit 6e3d2ef

Please sign in to comment.