Skip to content

v1.3.0

Latest

Choose a tag to compare

@nikosklms nikosklms released this 28 Nov 12:14

Upgrading (Docker: read this one)

git pull and docker compose up -d --build. Use up -d, not restart: the compose file now mounts .env into the container, and only up -d picks that up. The bot runs as user 1000, so .env has to be readable by it (chmod 644 .env if you locked it down). No database changes this time.

Removing someone from ALLOWED_USERS actually works in Docker now

The README always said ALLOWED_USERS changes apply without a restart, and outside Docker they did. Inside Docker the bot never saw .env (its kept out of the image and env_file is only read when the container is created), so removing a friend didnt take away their access until the container was recreated. Now .env is mounted read-only and edits apply on the next message.

Digests cover at most 60 days

A 180-day Europe digest is about 7,000 Google searches every week, and Google blocked the bot after ~25,000 in a row, so a few long digests at the same hour would get every search blocked for everyone. New digests (wizard, shortcut, editor and share links) are now capped at 60 days, for the admin too. /search and /explore still use the /limits value, and digests you already have keep running. Change DIGEST_MAX_DAYS in config.py if you want a different cap.

Health check catches more

It now also tells the admin when Google's "typical price" is missing from the page. Without it every discount shows 0% and the "biggest discounts" list is just the cheapest list again, which the old check didnt notice.

Smaller fixes

  • /users shows the newest 15 people per group, with a count of the rest. Before, it broke past ~65 people (everyone who ever messaged the bot stays on the list) and you couldnt approve or remove anyone from it
  • a stranger whose first message was very long never reached the admin as an access request. The quote is now cut to 200 characters
  • moving a digest to a later time on the same day it already ran skipped it until next week. It runs at the new time now
  • digest share links with the end date before the start are refused, like tracker links already were
  • tests and ruff run on every push and PR (Python 3.10 and 3.13)
  • removed code nobody used: price history rows that were written but never read, a fallback price scan that never matched real pages, an unused constant