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),
|
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)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct TeacherWithAppointments {
|
pub struct TeacherWithAppointments {
|
||||||
teacher: Teacher,
|
teacher: Teacher,
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
Elternsprechtag
|
Elternsprechtag
|
||||||
</p>
|
</p>
|
||||||
<p class="subtitle">
|
<p class="subtitle">
|
||||||
Am 28.02.23
|
Am 06.03.24
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user