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

@ -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: