From ca427153d9a23694eea3bb1a4e4b072c9ca6553e Mon Sep 17 00:00:00 2001
From: Franz Dietrich
Date: Sat, 24 Feb 2024 13:35:46 +0100
Subject: [PATCH] falsches Datum reparieren
---
terminwahl_back/src/db/read.rs | 11 +++++++++++
terminwahl_back/templates/confirmed.html.hbs | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/terminwahl_back/src/db/read.rs b/terminwahl_back/src/db/read.rs
index 626edb0..48d05ad 100644
--- a/terminwahl_back/src/db/read.rs
+++ b/terminwahl_back/src/db/read.rs
@@ -108,6 +108,17 @@ pub async fn get_dates(db: &Pool) -> Result {
Err(e) => Err(e),
}
}
+pub async fn get_date(db: &Pool, date_id: IdType) -> Result {
+ query_as!(
+ Date,
+ r#"
+ SELECT *
+ FROM `date` WHERE id = ?"#,
+ date_id
+ )
+ .fetch_one(db)
+ .await
+}
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct TeacherWithAppointments {
teacher: Teacher,
diff --git a/terminwahl_back/templates/confirmed.html.hbs b/terminwahl_back/templates/confirmed.html.hbs
index 2ff4296..4860997 100644
--- a/terminwahl_back/templates/confirmed.html.hbs
+++ b/terminwahl_back/templates/confirmed.html.hbs
@@ -16,7 +16,7 @@
Elternsprechtag
- Am 28.02.23
+ Am 06.03.24