Skip to content

Commit

Permalink
Fix float handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 2, 2024
1 parent b22aea1 commit 3182b5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pywb/warcserver/inputrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def _parser(json_obj, name=""):
fraction, _ = math.modf(json_obj)
if fraction == 0.0:
data[get_key(name)] = str(int(json_obj))
else:
data[get_key(name)] = str(json_obj)
else:
data[get_key(name)] = str(json_obj)

Expand Down

0 comments on commit 3182b5f

Please sign in to comment.