From 6fa775e09023496983527aa1283a3a02ea40c44b Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Mon, 15 Jan 2024 09:23:03 +0100 Subject: [PATCH] refactor: Return jobs based on end time Signed-off-by: Mahendra Paipuri --- pkg/jobstats/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/jobstats/server/server.go b/pkg/jobstats/server/server.go index 96eda101..90697594 100644 --- a/pkg/jobstats/server/server.go +++ b/pkg/jobstats/server/server.go @@ -425,7 +425,7 @@ func (s *JobstatsServer) jobs(w http.ResponseWriter, r *http.Request) { } // Add from and to to query only when checkQueryWindow is true - q.query(" AND Start BETWEEN ") + q.query(" AND End BETWEEN ") q.param([]string{fromTime.Format(base.DatetimeLayout)}) q.query(" AND ") q.param([]string{toTime.Format(base.DatetimeLayout)})