Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbusche committed Sep 30, 2024
1 parent 190af49 commit 6125978
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/trap/report/ReportHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ private List<IndividualTotal> getTeamScoresByTotal(Map<String, IndividualTotal>
private void populateTeamIndividualData(Workbook workbook, String sheetName, List<IndividualTotal> teamScoresByTotal) {
var sheet = workbook.getSheet(sheetName);
var startTime = System.currentTimeMillis();
var start = System.currentTimeMillis();
logger.info("Ran query for team scores in {} ms", System.currentTimeMillis() - start);

logger.info("Ran query for team scores in {} ms", System.currentTimeMillis() - startTime);

var rows = sheet.getLastRowNum();
var teamScoresThatCount = calculateTeamScores(teamScoresByTotal);
Expand All @@ -393,6 +393,7 @@ private void populateTeamIndividualData(Workbook workbook, String sheetName, Lis
}

sheet.setAutoFilter(CellRangeAddress.valueOf("A1:E1"));

logger.info("Team Individual Scores data populated in {} ms", System.currentTimeMillis() - startTime);
}

Expand Down

0 comments on commit 6125978

Please sign in to comment.