fixed exam update task for finished exams
finished exams where opened-up and immediately closed agian and again on every task run.
This commit is contained in:
		
							parent
							
								
									d2204c4708
								
							
						
					
					
						commit
						d763da6a79
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -133,6 +133,7 @@ class ExamSessionControlTask implements DisposableBean { | |||
|                     .getOrThrow() | ||||
|                     .stream() | ||||
|                     .filter(exam -> exam.startTime.minus(this.examTimePrefix).isBefore(now)) | ||||
|                     .filter(exam -> exam.endTime != null && exam.endTime.plus(this.examTimeSuffix).isAfter(now)) | ||||
|                     .flatMap(exam -> Result.skipOnError(this.examUpdateHandler.setRunning(exam, updateId))) | ||||
|                     .collect(Collectors.toMap(Exam::getId, Exam::getName)); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti