Compare commits

...

2 Commits

Author SHA1 Message Date
c2aae2afc3 Allow for version bumps 2025-09-29 23:41:01 +10:00
34aa402292 Set title if not set 2025-09-29 23:40:45 +10:00
3 changed files with 6 additions and 3 deletions

View File

@ -2,10 +2,12 @@ FROM recoll
RUN apt-get -y install breeze-icon-theme python3-venv
COPY dist/squirrel-0.3.0-py3-none-any.whl squirrel-0.3.0-py3-none-any.whl
ARG SQUIRREL_VERSION=0.3.1
COPY dist/squirrel-${SQUIRREL_VERSION}-py3-none-any.whl squirrel-${SQUIRREL_VERSION}-py3-none-any.whl
RUN python3 -m venv --system-site-packages /opt/squirrel
RUN /opt/squirrel/bin/pip install squirrel-0.3.0-py3-none-any.whl
RUN /opt/squirrel/bin/pip install squirrel-${SQUIRREL_VERSION}-py3-none-any.whl
EXPOSE 8000

View File

@ -1,6 +1,6 @@
[project]
name = "squirrel"
version = "0.3.0"
version = "0.3.1"
description = "Find your nuts"
authors = [
{name = "Your Name",email = "you@example.com"}

View File

@ -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