# HG changeset patch # User Goffi # Date 1622810749 -7200 # Node ID 0f3038f3a9544d1281055e16e809ddf580b2b2f5 # Parent 01936fc55cd9828111198fd8446f30cba44dbf06 browser (lists/view): fix status check in grocery list following `value` property fix in template_xmlui.OptionsWidget diff -r 01936fc55cd9 -r 0f3038f3a954 libervia/pages/lists/view/_browser/__init__.py --- a/libervia/pages/lists/view/_browser/__init__.py Fri May 07 15:38:34 2021 +0200 +++ b/libervia/pages/lists/view/_browser/__init__.py Fri Jun 04 14:45:49 2021 +0200 @@ -88,13 +88,13 @@ f"Can't get item status: {e}", level="error" ) - status = ["to_buy"] - if status == ["to_buy"]: - item["status"] = ["bought"] + status = "to_buy" + if status == "to_buy": + item["status"] = "bought" class_update_method = item_elt.classList.add checked = True - elif status == ["bought"]: - item["status"] = ["to_buy"] + elif status == "bought": + item["status"] = "to_buy" checked = False class_update_method = item_elt.classList.remove else: