More features for search.

This commit is contained in:
Yaro Kasear 2025-09-29 14:34:15 -05:00
parent 9a39ae25df
commit 3a9dd7b915
3 changed files with 8 additions and 3 deletions

View file

@ -72,7 +72,8 @@ def init_search_routes(app):
"link": {"endpoint": "entry.entry", "params": {"id": "{work_item.id}", "model": "inventory"}}},
{"field": "complete", "format": "yesno"},
{"field": "start_time", "format": "datetime"},
{"field": "end_time", "format": "datetime"}
{"field": "end_time", "format": "datetime"},
{"field": "updates", "format": lambda x: len(x)},
]
worklog_results = worklog_service.list({
'contact.label|work_item.label__icontains': q,
@ -81,7 +82,8 @@ def init_search_routes(app):
"work_item.label",
"complete",
"start_time",
"end_time"
"end_time",
"updates",
]
})