Skip to content

Commit

Permalink
fix bug for submission of float/int
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jun 20, 2024
1 parent e07d50a commit a246d2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,9 @@ def submit_contributions(
for kk, vv in flatten(contrib[k], reducer="dot").items():
if isinstance(vv, bool):
flat[kk] = "Yes" if vv else "No"
elif isinstance(vv, str) and vv:
elif (isinstance(vv, str) and vv) or isinstance(
vv, (float, int)
):
flat[kk] = vv
contrib_copy[k] = deepcopy(unflatten(flat, splitter="dot"))
else:
Expand Down

0 comments on commit a246d2b

Please sign in to comment.