Update SQL query to filter dates within the last 14 days and add a notification for closed registration.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user