From 2bd2b95f05d78191b14fae3353198bb8f053ffc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 19 Oct 2025 14:18:40 +0200 Subject: [PATCH] update sum at bottom of page after each change --- foods.db | Bin 8192 -> 8192 bytes src/main.rs | 13 +++++++++---- templates/food-update.html | 2 ++ templates/index.html | 4 +--- templates/sum.html | 3 +++ 5 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 templates/food-update.html create mode 100644 templates/sum.html diff --git a/foods.db b/foods.db index 9a624da60611be3119fb46d857e24ec36292adf7..356d2310e22c54756a50fda74d1748ff3beb6725 100644 GIT binary patch delta 24 fcmZp0XmFSy&DcLt#+k8yV}iUaBh%&v*#;&6VonEM delta 24 fcmZp0XmFSy%~(BA#+k8tV}iUa - Total: {{ sum }} kc. - + {% include "sum.html" %} diff --git a/templates/sum.html b/templates/sum.html new file mode 100644 index 0000000..7f66211 --- /dev/null +++ b/templates/sum.html @@ -0,0 +1,3 @@ +
+ Total: {{ sum }} kc. +
\ No newline at end of file