From 0383aebcbfe91c211cdf1619a22005d5637f3f00 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 1 Mar 2021 20:07:00 +0100 Subject: [PATCH] fix: take also finished exams into running check --- .../sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java index b92f3dbf..3ded3a19 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamDAOImpl.java @@ -431,7 +431,7 @@ public class ExamDAOImpl implements ExamDAO { isEqualTo(BooleanUtils.toInteger(true))) .and( ExamRecordDynamicSqlSupport.status, - isEqualTo(ExamStatus.UP_COMING.name())) + isNotEqualTo(ExamStatus.RUNNING.name())) .and( ExamRecordDynamicSqlSupport.updating, isEqualTo(BooleanUtils.toInteger(false)))