Skip to content

Commit d21fec9

Browse files
committed
Revert "Fixed problem not to be able to get boolean typed data with correct type"
This reverts commit 84ce5d4.
1 parent dea2ebc commit d21fec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entry/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ def _set_attrinfo_data(model):
17871787
attrinfo["value"] = truncate(attrv.value)
17881788

17891789
elif entity_attr.type & AttrTypeValue["boolean"]:
1790-
attrinfo["value"] = attrv.boolean
1790+
attrinfo["value"] = str(attrv.boolean)
17911791

17921792
elif entity_attr.type & AttrTypeValue["date"]:
17931793
attrinfo["date_value"] = attrv.date.strftime("%Y-%m-%d") if attrv.date else None

0 commit comments

Comments
 (0)