Fetch CITTI Lübeck offers from the Tjek API (German dealer 3czmZx only —
never the Danish Flensburg booklet) and surface them in the app.
- New offers + offer_meta tables; defensive hotspots parser; upsert by
offer id, prune per re-fetched catalog while preserving picked rows
- Daily in-process refresh scheduler (data.db lives on the app's own
Nomad alloc disk, so a separate periodic job can't share it) plus a
manual POST /api/offers/refresh and an "Opdater" button
- /tilbud page: browse all offers by catalog, search, EUR + DKK, and tick
offers onto the shopping list; picks appear in a Lübeck-tilbud section
on the main list and check off as bought via the existing /api/price
- Match the fixed catalog items against current offers and show a
"på tilbud" badge with the matched offer name (conservative word-
boundary token match, >=2 tokens for multi-word names)
- Dockerfile: add ca-certificates for urllib HTTPS to the Tjek API
Add a "Arkivér & ny liste" button that snapshots the current trip
(checked items, prices, quantities, extras and custom categories)
into a new trips table, then clears the mutable state so the list
resets to the fresh catalog.
- New trips table in init_db() storing a self-contained JSON snapshot
plus computed totals and item count
- POST /api/archive with a no-op guard against archiving an empty list
- /historik list view and /historik/<id> read-only detail view
- Photo files are kept so archived trips can still show them
Each item now shows the German name (de field) below the Danish name
so it's easier to find products on shelves in Citti Flensburg.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Avoids stale image cache issues where Nomad re-uses the old :latest
layer. SHA is injected via nomad -var flag at deploy time.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each item row now has an editable qty input showing the planned amount
(e.g. "6 × ½ kg"). Changes are auto-saved via debounce to the prices
table and highlighted in accent color when modified from the default.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sticky+migrate keeps data across restarts and job updates.
DATA_DIR points to NOMAD_ALLOC_DIR/data.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Flask app serving the Citti shopping list with SQLite persistence,
per-category item addition, dynamic custom categories, photo upload,
and a post-trip price analysis page.
- Port 9756, DATA_DIR env var for persistent volume in Nomad
- Gitea Actions pipeline builds Docker image and deploys via Nomad API
- Makefile targets: run, install, build, push
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>