From b691bfa977e6beccbfb573d5e3dc9c7d34503166 Mon Sep 17 00:00:00 2001 From: Angad Tendulkar Date: Mon, 13 Jan 2025 16:52:35 -0500 Subject: [PATCH] etc --- src-api/src/main.rs | 4 +++- src-api/src/routes/hours.rs | 2 +- src-api/src/routes/roster.rs | 5 ----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src-api/src/main.rs b/src-api/src/main.rs index e8f7eb4..f885ed8 100644 --- a/src-api/src/main.rs +++ b/src-api/src/main.rs @@ -99,7 +99,9 @@ async fn clear(req: HttpRequest, state: web::Data) -> Result= INTERVAL '8 hours' "# ) .execute(&*state.pg) diff --git a/src-api/src/routes/hours.rs b/src-api/src/routes/hours.rs index 6c92006..d5abac0 100644 --- a/src-api/src/routes/hours.rs +++ b/src-api/src/routes/hours.rs @@ -18,7 +18,7 @@ pub async fn hours(id: String, pg: &PgPool) -> Result<(f64, f64), RouteError> { AND sign_out IS NOT NULL AND in_progress = false AND EXTRACT(MONTH FROM sign_in) <= 12 - AND EXTRACT(MONTH FROM sign_in) >= 11 + AND EXTRACT(MONTH FROM sign_in) >= 9 "#, id ) diff --git a/src-api/src/routes/roster.rs b/src-api/src/routes/roster.rs index 3d88b93..96d056d 100644 --- a/src-api/src/routes/roster.rs +++ b/src-api/src/routes/roster.rs @@ -13,15 +13,10 @@ pub async fn roster(id: String, force: bool, pg: &PgPool) -> Result