Skip to content

Commit

Permalink
handle numerical values
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 11, 2024
1 parent 27dd6d8 commit a93275d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workbench_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,15 @@ def serialize(self, config, field_definitions, field_name, field_data):
return subvalues[0]

def get_json(self, json_str):
if value_is_numeric(json_str, allow_decimals=True):
return False

try:
j = json.loads(json_str)
return j
except ValueError:
return False
return False


class GeolocationField:
Expand Down

0 comments on commit a93275d

Please sign in to comment.