From 7702419e2dde1d9765275fea8fe40d22dc69ea04 Mon Sep 17 00:00:00 2001 From: Romulus21 Date: Fri, 14 Mar 2025 16:03:47 +0100 Subject: [PATCH] fix type id value --- Makefile | 7 +++++++ src/models/value.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fac671..3ecfe3a 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,10 @@ deploy: #scp target/aarch64-unknown-linux-gnu/debug/rust_leptos raspiwork:/var/www/rust_leptos/rust_leptos scp -r target/site raspiwork:/var/www/rust_leptos/ ssh raspiwork "sudo systemctl start rust_leptos.service" + +install: + cargo leptos build --release + sudo systemctl stop rust_leptos.service + scp target/aarch64-unknown-linux-gnu/release/rust_leptos /var/www/rust_leptos/rust_leptos + scp -r target/site /var/www/rust_leptos/ + sudo systemctl start rust_leptos.service diff --git a/src/models/value.rs b/src/models/value.rs index 13d58fd..3885c5c 100644 --- a/src/models/value.rs +++ b/src/models/value.rs @@ -42,7 +42,7 @@ pub const OPTIONS: &[Option] = &[ #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct Value { - id: i32, + id: i64, service: String, capteur: String, type_donnee: String,