Skip to content

Commit

Permalink
pull in pleb pre-commit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cblades-tc committed Oct 3, 2024
1 parent 3d28685 commit 75306d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tcex/api/tc/ti_transform/ti_predefined_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def static_map(self, value, mapping: dict):
If there is no matching value in the mapping the original value will be returned.
"""
if not isinstance(mapping, dict):
mapping = json.loads(mapping)
return mapping.get(str(value), value)

def value_in(self, value, values: str, delimiter: str = ','):
Expand Down
2 changes: 1 addition & 1 deletion tcex/pleb

0 comments on commit 75306d4

Please sign in to comment.