falsches Datum reparieren
This commit is contained in:
parent
a3e4a77b91
commit
ca427153d9
@ -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,
|
||||
|
@ -16,7 +16,7 @@
|
||||
Elternsprechtag
|
||||
</p>
|
||||
<p class="subtitle">
|
||||
Am 28.02.23
|
||||
Am 06.03.24
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user