From 09fb0faacd3184425f47d7b9b8c45a8bd91a8b37 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Tue, 7 Dec 2021 14:53:29 -0800 Subject: [PATCH] api: catch boolean values for init_columns --- mpcontribs-api/mpcontribs/api/projects/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpcontribs-api/mpcontribs/api/projects/document.py b/mpcontribs-api/mpcontribs/api/projects/document.py index 9098343a4..4ae73e721 100644 --- a/mpcontribs-api/mpcontribs/api/projects/document.py +++ b/mpcontribs-api/mpcontribs/api/projects/document.py @@ -29,7 +29,7 @@ def visit(path, key, value): # pull out units if isinstance(value, dict) and "unit" in value: return key, value["unit"] - elif isinstance(value, str) and key not in quantity_keys: + elif isinstance(value, (str, bool)) and key not in quantity_keys: return key, None return True