From e4a9ede64cd35dfcd90dd17475e8e661fc2ccd33 Mon Sep 17 00:00:00 2001 From: itskovacs Date: Sat, 19 Jul 2025 15:18:14 +0200 Subject: [PATCH] :bug: Fix Place without image update, :memo: add docker pull clue --- README.md | 4 ++++ backend/trip/__init__.py | 2 +- src/src/app/services/api.service.ts | 9 +-------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c016fce..2b3df71 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ If you need help, feel free to open an [issue](https://github.com/itskovacs/trip > Packages are available in the [packages section](https://github.com/itskovacs/trip/pkgs/container/trip) of the repository for quickstart, using just `docker run` ```bash +# Ensure you have the latest +docker pull ghcr.io/itskovacs/trip:1 + +# Run the app docker run -p 8080:8000 -v trip-storage:/app/storage ghcr.io/itskovacs/trip:1 ``` diff --git a/backend/trip/__init__.py b/backend/trip/__init__.py index 72f26f5..0b2f79d 100644 --- a/backend/trip/__init__.py +++ b/backend/trip/__init__.py @@ -1 +1 @@ -__version__ = "1.1.2" +__version__ = "1.1.3" diff --git a/src/src/app/services/api.service.ts b/src/src/app/services/api.service.ts index f4ee057..087f101 100644 --- a/src/src/app/services/api.service.ts +++ b/src/src/app/services/api.service.ts @@ -155,14 +155,7 @@ export class ApiService { putPlace(place_id: number, place: Partial): Observable { return this.httpClient .put(`${this.apiBaseUrl}/places/${place_id}`, place) - .pipe( - map((place) => { - if (place.image) place.image = `${this.assetsBaseUrl}/${place.image}`; - else - place.image = `${this.assetsBaseUrl}/${(place.category as Category).image}`; - return place; - }), - ); + .pipe(map((p) => this._normalizePlaceImage(p))); } deletePlace(place_id: number): Observable {