falsches Datum reparieren

This commit is contained in:
Franz Dietrich 2024-02-24 13:35:46 +01:00
parent a3e4a77b91
commit ca427153d9
2 changed files with 12 additions and 1 deletions

View File

@ -108,6 +108,17 @@ pub async fn get_dates(db: &Pool) -> Result<Dates, sqlx::Error> {
Err(e) => Err(e),
}
}
pub async fn get_date(db: &Pool, date_id: IdType) -> Result<Date, sqlx::Error> {
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,

View File

@ -16,7 +16,7 @@
Elternsprechtag
</p>
<p class="subtitle">
Am 28.02.23
Am 06.03.24
</p>
</div>
</section>