CQ fixes
Build and Push Docker Image / build-and-push (pull_request) Successful in 1m11s
Python Code Quality / python-code-quality (pull_request) Successful in 11s
Python Test / python-test (pull_request) Successful in 19s

This commit is contained in:
Brian Bjarke Jensen
2025-12-03 19:49:48 +01:00
parent 95c2bf6744
commit 5b17508ade
4 changed files with 13 additions and 8 deletions
+8 -4
View File
@@ -346,10 +346,14 @@
const changes = await response.json(); const changes = await response.json();
if (changes.length > 0) { if (changes.length > 0) {
const last = changes[0]; const last = changes[0];
document.getElementById("poopAmount").value = last.poop_amount || ""; document.getElementById("poopAmount").value =
document.getElementById("poopColor").value = last.poop_color || ""; last.poop_amount || "";
document.getElementById("peeAmount").value = last.pee_amount || ""; document.getElementById("poopColor").value =
document.getElementById("peeColor").value = last.pee_color || ""; last.poop_color || "";
document.getElementById("peeAmount").value =
last.pee_amount || "";
document.getElementById("peeColor").value =
last.pee_color || "";
} }
} }
} catch (error) { } catch (error) {
+2 -1
View File
@@ -312,7 +312,8 @@
if (response.ok) { if (response.ok) {
const feedings = await response.json(); const feedings = await response.json();
if (feedings.length > 0) { if (feedings.length > 0) {
document.getElementById("feedingType").value = feedings[0].feeding_type; document.getElementById("feedingType").value =
feedings[0].feeding_type;
} }
} }
} catch (error) { } catch (error) {