More features for search.
This commit is contained in:
parent
9a39ae25df
commit
3a9dd7b915
3 changed files with 8 additions and 3 deletions
|
|
@ -840,6 +840,9 @@ def _format_value(val: Any, fmt: Optional[str]) -> Any:
|
|||
if fmt is None:
|
||||
return val
|
||||
try:
|
||||
if callable(fmt):
|
||||
return fmt(val)
|
||||
|
||||
if fmt == "yesno":
|
||||
return "Yes" if bool(val) else "No"
|
||||
if fmt == "date":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue