From 34aa402292ce7534699fdf918b192cef187e1e3a Mon Sep 17 00:00:00 2001 From: Tris Forster Date: Mon, 29 Sep 2025 23:40:45 +1000 Subject: [PATCH] Set title if not set --- squirrel/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/squirrel/api.py b/squirrel/api.py index 9ade230..56b8d77 100644 --- a/squirrel/api.py +++ b/squirrel/api.py @@ -96,6 +96,7 @@ def search(q: str, count: int, page: int): d = dict(doc) d["snippets"] = query.getsnippets(doc, ctxwords=20) d["fpath"] = d["url"][STRIP_CHARS:] + d["title"] = d["title"] or d["filename"] result["results"].append(d) return result