Skip to content

Commit

Permalink
api: also add boolean paths to columns
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Oct 20, 2021
1 parent c4fa95f commit d00449a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-api/mpcontribs/api/contributions/document.py
Expand Up @@ -309,7 +309,7 @@ def update_columns(path, key, value):
is_text = bool(
not is_quantity and isinstance(value, str) and key not in quantity_keys
)
if is_quantity or is_text:
if is_quantity or is_text or isinstance(value, bool):
if path not in columns:
columns[path] = Column(path=path)

Expand Down

0 comments on commit d00449a

Please sign in to comment.