[FIX] HORILLA_VIEWS: Stop converting bools to Yes/No in getattribute; return raw bool values for Python usage

This commit is contained in:
Horilla
2025-08-19 09:57:28 +05:30
parent 67104b22eb
commit 33b559685f

View File

@@ -86,8 +86,11 @@ def getattribute(value, attr: str):
value = result
else:
return getattr(value, attr, "")
if isinstance(result, bool):
return _("Yes") if result else _("No")
# Python code we need raw bool values, not "Yes"/"No"
# if isinstance(result, bool):
# return _("Yes") if result else _("No")
return result