|
|
|
@ -24,12 +24,6 @@ public class StatisticController {
|
|
|
|
|
@GetMapping("/statistic")
|
|
|
|
|
public String indexBranch(
|
|
|
|
|
Model model) {
|
|
|
|
|
String[] continents = {
|
|
|
|
|
"Africa", "Antarctica", "Asia", "Australia",
|
|
|
|
|
"Europe", "North America", "Sourth America"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
model.addAttribute("continents", continents);
|
|
|
|
|
List<Object[]> authorCommits = commitRepository.getCommitAuthorStatistic().stream()
|
|
|
|
|
.map(stat -> new Object[]{stat.getAuthor(), stat.getCountCommit()})
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|