diff --git a/backend/main.py b/backend/main.py index 47de28b..b1f22b5 100644 --- a/backend/main.py +++ b/backend/main.py @@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "902" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "903" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/routes/breeder.py b/backend/routes/breeder.py index 2a5f884..849388d 100644 --- a/backend/routes/breeder.py +++ b/backend/routes/breeder.py @@ -54,7 +54,7 @@ async def breeder_status(user=Depends(get_current_user)): profile = None if row["rolle"] in ("breeder", "admin"): profile = conn.execute( - "SELECT zwingername, rasse_text, verein, vdh_mitglied, stadt, website, beschreibung, verified_at " + "SELECT id, zwingername, rasse_text, verein, vdh_mitglied, stadt, website, beschreibung, verified_at " "FROM breeder_profiles WHERE user_id=?", (user["id"],) ).fetchone() diff --git a/backend/static/index.html b/backend/static/index.html index cb1a3cd..3701618 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -591,10 +591,10 @@
- - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 5f52530..14dd4dc 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '902'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '903'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/js/pages/zuchthunde.js b/backend/static/js/pages/zuchthunde.js index 8807396..8886acb 100644 --- a/backend/static/js/pages/zuchthunde.js +++ b/backend/static/js/pages/zuchthunde.js @@ -159,7 +159,7 @@ window.Page_zuchthunde = (() => { try { [_hunde] = await Promise.all([ API.zuchthunde.list(), - API.breeder.status().then(s => { _breederId = s?.id || null; }).catch(() => {}), + API.breeder.status().then(s => { _breederId = s?.profile?.id || null; }).catch(() => {}), ]); _renderList(); } catch (err) { diff --git a/backend/static/sw.js b/backend/static/sw.js index 3dea315..7280ca8 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v902'; +const CACHE_VERSION = 'by-v903'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache