mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-03 17:15:06 +01:00 
			
		
		
		
	fix: add missing exclusive filter handler for jobQuery
This commit is contained in:
		@@ -176,6 +176,9 @@ func BuildWhereClause(filter *model.JobFilter, query sq.SelectBuilder) sq.Select
 | 
			
		||||
		now := time.Now().Unix() // There does not seam to be a portable way to get the current unix timestamp accross different DBs.
 | 
			
		||||
		query = query.Where("(job.job_state != 'running' OR (? - job.start_time) > ?)", now, *filter.MinRunningFor)
 | 
			
		||||
	}
 | 
			
		||||
	if filter.Exclusive != nil {
 | 
			
		||||
		query = query.Where("job.exclusive = ?", *filter.Exclusive)
 | 
			
		||||
	}
 | 
			
		||||
	if filter.State != nil {
 | 
			
		||||
		states := make([]string, len(filter.State))
 | 
			
		||||
		for i, val := range filter.State {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user