Skip to content

Commit

Permalink
refactor: Return jobs based on end time
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jan 15, 2024
1 parent 923bd0a commit 6fa775e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jobstats/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)})
Expand Down

0 comments on commit 6fa775e

Please sign in to comment.