Skip to content

Commit be51c58

Browse files
committed
fix exam deletion from SEB Server
1 parent a41c437 commit be51c58

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/main/java/ch/ethz/seb/sps/server/datalayer/dao/impl/SessionDAOBatis.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -704,16 +704,12 @@ public Long getNumberOfScreenshots(final String uuid, final FilterMap filterMap)
704704
public Result<Boolean> hasAnySessionData(Collection<Long> groupIds) {
705705
return Result.tryCatch(() -> {
706706

707-
System.out.println("*********************** hasAnySessionData groupIds: " + groupIds);
708-
709707
List<Long> sessionIds = this.sessionRecordMapper
710708
.selectIdsByExample()
711709
.where(groupId, isIn(groupIds))
712710
.build()
713711
.execute();
714712

715-
System.out.println("*********************** hasAnySessionData sessionIds: " + sessionIds);
716-
717713
if (sessionIds == null || sessionIds.isEmpty()) {
718714
return false;
719715
}
@@ -724,8 +720,6 @@ public Result<Boolean> hasAnySessionData(Collection<Long> groupIds) {
724720
.build()
725721
.execute();
726722

727-
System.out.println("*********************** hasAnySessionData dataNum: " + dataNum);
728-
729723
return dataNum != null && dataNum.intValue() != 0;
730724
});
731725
}

src/main/java/ch/ethz/seb/sps/server/servicelayer/impl/SessionServiceImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ public Result<Collection<EntityKey>> closeAllSessions(final Collection<EntityKey
186186
@Override
187187
public boolean hasAnySessionDataForExam(final String examUUID) {
188188
Long pk = examDAO.modelIdToPK(examUUID);
189-
System.out.println("*********************** requestDelete pk: " + pk);
190189
if (pk != null) {
191190
return this.groupDAO
192191
.allIdsForExamsIds(List.of(pk))

0 commit comments

Comments
 (0)