feat(offers): live Lübeck offer prices with pick-to-list and deal matching
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
This commit is contained in:
@@ -14,6 +14,11 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# ca-certificates: urllib needs them to reach the Tjek API over HTTPS
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --upgrade --no-cache-dir pip
|
||||
|
||||
COPY requirements.txt ./
|
||||
|
||||
Reference in New Issue
Block a user