Skip to content

Commit

Permalink
Support numeric custom fields (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumnerwarren authored Mar 11, 2024
1 parent 5ce4897 commit 4b45833
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tenable_jira/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ def _process_vuln(self, vuln, fid):
processed = arrow.get(int(value)).format(
'YYYY-MM-DDTHH:mm:ss.SSSZ')

# Cast to float for numeric fields
elif f['type'] in ['float']:
processed = float(value)

# For anything else, just pass through
else:
processed = value
Expand Down

0 comments on commit 4b45833

Please sign in to comment.