Skip to content

Commit

Permalink
namizun v1.2.1
Browse files Browse the repository at this point in the history
- bug fixed on check_datatype()
  • Loading branch information
malkemit committed Dec 4, 2022
1 parent 9cac9c1 commit 9f3455d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion namizun_core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def check_datatype(value):
return True
elif value == 'None':
return None
elif value.isdigit():
elif isinstance(value, str) and value.isdigit():
return int(value)
else:
return value
Expand Down

0 comments on commit 9f3455d

Please sign in to comment.