Update SQL query to filter dates within the last 14 days and add a notification for closed registration.

This commit is contained in:
2024-02-07 19:32:14 +01:00
parent b067be722d
commit c0efdf8b49
4 changed files with 152 additions and 53 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ pub async fn get_dates(db: &Pool) -> Result<Dates, sqlx::Error> {
Date,
r#"
SELECT *
FROM `date`;"#,
FROM `date` WHERE end_time > datetime('now', '-14 days');"#,
)
.fetch_all(db)
.await