Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# Run: docker run -it --rm fingr:latest

FROM ubuntu:24.04
# UV version 0.9
COPY --from=ghcr.io/astral-sh/uv@sha256:15f68a476b768083505fe1dbfcc998344d0135f0ca1b8465c4760b323904f05a /uv /uvx /bin/
COPY --from=ghcr.io/astral-sh/uv:0.10@sha256:4cac394b6b72846f8a85a7a0e577c6d61d4e17fe2ccee65d9451a8b3c9efb4ac /uv /uvx /bin/

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
Expand Down
2 changes: 1 addition & 1 deletion fingr/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async def handle_request(reader: asyncio.StreamReader, writer: asyncio.StreamWri
if "~" in user_input:
try:
user_input, width_str = user_input.split("~", 1)
screenwidth = int(max(80, min(int(width_str), 200)))
screenwidth = int(max(30, min(int(width_str), 256))) if width_str else 80
except ValueError:
pass

Expand Down