Skip to content

Commit

Permalink
Merge pull request #420 from khoa-nd/master
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
khoa-nd committed Sep 25, 2015
2 parents 39e96eb + 64740a1 commit 7aca7eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,14 @@ public List<ChallengeDetailDto> listChallenges() {
// }
// return sortChallengesByDescendingStartDate(challenges);
TermQueryBuilder notExpiredQuery = termQuery("expired", Boolean.TRUE);
Iterable<ChallengeEntity> challenges = challengeRepository.search(boolQuery().mustNot(notExpiredQuery));
ArrayList<ChallengeDetailDto> dtos = new ArrayList<>();
challenges.forEach(challengeEntity -> {
Iterable<ChallengeEntity> challengeIterator = challengeRepository.search(boolQuery().mustNot(notExpiredQuery));
ArrayList<ChallengeDetailDto> challenges = new ArrayList<>();
challengeIterator.forEach(challengeEntity -> {
ChallengeDetailDto challengeDetailDto = dozerMapper.map(challengeEntity, ChallengeDetailDto.class);
challengeDetailDto.setNumberOfRegistrants(getNumberOfRegistrants(challengeEntity.getChallengeId()));
dtos.add(challengeDetailDto);
challenges.add(challengeDetailDto);
});
dozerMapper.map(challenges, dtos);
return dtos;
return sortChallengesByDescendingStartDate(challenges);
}

private void sendContestApplicationEmail(Template template, String mailSubject, Address[] recipientAddresses,
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/local/techlooper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ mail.notifyChallengeTimelineRegistration.subject.en = %d more day(s) to start %s
mail.notifyChallengeTimelineInProgress.subject.vn = C\u00F2n %d ng\u00E0y n\u1EEFa t\u1EDBi h\u1EA1n g\u1EEDi s\u1EA3n ph\u1EA9m cho th\u1EED th\u00E1ch %s
mail.notifyChallengeTimelineInProgress.subject.en = %d more day(s) to submit for %s

mail.onBoarding.subject.en = Are you ready to become a Tech Talent?

mail.onBoarding.subject.vi = B\u1EA1n \u0111\u00E3 s\u1EB5n s\u00E0ng tr\u1EDF th\u00E0nh m\u1ED9t Nh\u00E2n T\u00E0i C\u00F4ng Ngh\u1EC7?
mail.onBoarding.subject.en = Are you ready to become a Tech Talent




2 changes: 1 addition & 1 deletion src/main/resources/production/techlooper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ mail.notifyChallengeTimelineRegistration.subject.en = %d more day(s) to start %s
mail.notifyChallengeTimelineInProgress.subject.vn = C\u00F2n %d ng\u00E0y n\u1EEFa t\u1EDBi h\u1EA1n g\u1EEDi s\u1EA3n ph\u1EA9m cho th\u1EED th\u00E1ch %s
mail.notifyChallengeTimelineInProgress.subject.en = %d more day(s) to submit for %s

mail.onBoarding.subject.en = Are you ready to become a Tech Talent?

mail.onBoarding.subject.en = Are you ready to become a Tech Talent
mail.onBoarding.subject.vi = B\u1EA1n \u0111\u00E3 s\u1EB5n s\u00E0ng tr\u1EDF th\u00E0nh m\u1ED9t Nh\u00E2n T\u00E0i C\u00F4ng Ngh\u1EC7?
2 changes: 1 addition & 1 deletion src/main/resources/staging/techlooper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ mail.notifyChallengeTimelineRegistration.subject.en = %d more day(s) to start %s
mail.notifyChallengeTimelineInProgress.subject.vn = C\u00F2n %d ng\u00E0y n\u1EEFa t\u1EDBi h\u1EA1n g\u1EEDi s\u1EA3n ph\u1EA9m cho th\u1EED th\u00E1ch %s
mail.notifyChallengeTimelineInProgress.subject.en = %d more day(s) to submit for %s

mail.onBoarding.subject.en = Are you ready to become a Tech Talent?

mail.onBoarding.subject.en = Are you ready to become a Tech Talent
mail.onBoarding.subject.vi = B\u1EA1n \u0111\u00E3 s\u1EB5n s\u00E0ng tr\u1EDF th\u00E0nh m\u1ED9t Nh\u00E2n T\u00E0i C\u00F4ng Ngh\u1EC7?

0 comments on commit 7aca7eb

Please sign in to comment.