From 20044093216783db4aee46d1b8b9ff9a19d0692d Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Fri, 5 Jan 2024 13:50:20 +0100 Subject: [PATCH] fixing generation --- Dockerfile.backend | 2 +- Dockerfile.builder | 10 ++++++---- reflex_ipad/pages/medicine.py | 2 -- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile.backend b/Dockerfile.backend index 1957e17..a03d3b4 100644 --- a/Dockerfile.backend +++ b/Dockerfile.backend @@ -1,4 +1,4 @@ -FROM python:3.11-slim +FROM python:3.12-slim ARG API_URL WORKDIR /app RUN apt-get update && apt-get --no-install-recommends -y install libpq5 && rm -rf /var/apt/cache/* diff --git a/Dockerfile.builder b/Dockerfile.builder index 3cc9447..830e2cd 100644 --- a/Dockerfile.builder +++ b/Dockerfile.builder @@ -1,5 +1,4 @@ -# Stage 1: init -FROM python:3.11 as init +FROM python:3.12 as init # Pass `--build-arg API_URL=http://app.example.com:8000` during build ARG API_URL @@ -9,15 +8,18 @@ WORKDIR /app ENV VIRTUAL_ENV=/app/.venv ENV PATH="$VIRTUAL_ENV/bin:$PATH" -RUN python3.11 -m venv $VIRTUAL_ENV +RUN python3.12 -m venv $VIRTUAL_ENV COPY requirements.txt . # Install app requirements and reflex inside virtualenv -RUN pip install -r requirements.txt +RUN $VIRTUAL_ENV/bin/pip install -r requirements.txt COPY . . COPY deploy/* . # Deploy templates and prepare app RUN reflex init + + +# vim:set ft=dockerfile: diff --git a/reflex_ipad/pages/medicine.py b/reflex_ipad/pages/medicine.py index 2b0ee66..6b63430 100644 --- a/reflex_ipad/pages/medicine.py +++ b/reflex_ipad/pages/medicine.py @@ -36,11 +36,9 @@ class NewMedicineState(rx.State): statement = select(Scan).order_by(Scan.timestamp.desc()).limit(1) results = session.exec(statement) self.last_scan = results.first() - print(self.last_scan) if self.last_scan is None: return if self.last_scan.timestamp > self.lastupdatetime: - print("Update last scan uuid") self.last_scan_uuid = self.last_scan.uuid if not self.show_med_add_form: self.update_medicine(self.last_scan.uuid)