Fix: ki_health_reports INSERT user_id ergänzt, SW updatefound Race Fix (SW by-v805)

This commit is contained in:
rene 2026-05-09 21:08:25 +02:00
parent ab851d4bb1
commit 5f1a6d578b
4 changed files with 5 additions and 5 deletions

View file

@ -341,7 +341,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media")
os.makedirs(MEDIA_DIR, exist_ok=True)
app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
APP_VER = "804" # muss mit APP_VER in app.js übereinstimmen
APP_VER = "805" # muss mit APP_VER in app.js übereinstimmen
@app.get("/.well-known/assetlinks.json")
async def assetlinks():

View file

@ -456,8 +456,8 @@ async def ki_zusammenfassung(dog_id: int, user=Depends(get_current_user)):
)
with db() as conn:
conn.execute(
"INSERT INTO ki_health_reports (dog_id, bericht) VALUES (?,?)",
(dog_id, result)
"INSERT INTO ki_health_reports (dog_id, user_id, bericht) VALUES (?,?,?)",
(dog_id, user["id"], result)
)
return {"zusammenfassung": result}
except KIPremiumRequired as e:

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '804'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '805'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v804';
const CACHE_VERSION = 'by-v805';
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