Skip to content

Commit

Permalink
Merge pull request #116 from correctexam/develop
Browse files Browse the repository at this point in the history
small update
  • Loading branch information
barais authored Jan 4, 2024
2 parents e7dfe75 + f1c9d02 commit 60094be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/fr/istic/service/ExamSheetService.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ public Paged<ExamSheetDTO> findOrCreateExamSheetByName(Page page, Long scanId, I

long nbrpage = ExamSheet.findExamSheetByScanWithoutMinusOne(scanId).count();


if (nbrpage == pageInScan/pageInTemplate){
return new Paged<>(ExamSheet.findExamSheetByScan(scanId).page(page))
return new Paged<>(ExamSheet.findExamSheetByScanWithoutMinusOne(scanId).page(page))
.map(examSheet -> examSheetMapper.toDto((ExamSheet) examSheet));
} else {
for (int i = 0; i< pageInScan/pageInTemplate ;i++){
Expand Down

0 comments on commit 60094be

Please sign in to comment.