Skip to content

Commit

Permalink
fix: cast exactly int types to string
Browse files Browse the repository at this point in the history
  • Loading branch information
janezicmatej committed Nov 21, 2024
1 parent 321bc65 commit 9413126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fdc/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def response(self):
ref_stack.append(v)
if isinstance(v, list):
for i in range(len(v)):
if isinstance(v[i], int):
if type(v[i]) is int:
d[k][i] = str(d[k][i])
if isinstance(v, int):
if type(v) is int:
d[k] = str(d[k])

return data
Expand Down

0 comments on commit 9413126

Please sign in to comment.