#21 -- Clean filter
This commit is contained in:
parent
6c6e8fdc3b
commit
b32bad1eda
@ -47,12 +47,6 @@ public class StatisticController {
|
||||
url[i] = urlCommits.get(i)[0].toString().substring(urlCommits.get(i)[0].toString().lastIndexOf("/") + 1);
|
||||
}
|
||||
model.addAttribute("urls", url);
|
||||
|
||||
// List<Object[]> entityCommits = commitRepository.getCommitEntityStatistic().stream()
|
||||
// .map(stat -> new Object[]{stat.getEntity(), stat.getCountCommit()})
|
||||
// .collect(Collectors.toList());
|
||||
// model.addAttribute("commitTimeData", timeCommits);
|
||||
|
||||
return STATISTIC;
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,4 @@ public interface CommitRepository extends JpaRepository<Commit, Integer> {
|
||||
@Query("SELECT new ru.ulstu.extractor.model.CommitTimeStatistic(cast(c.date as date), COUNT(DISTINCT c.hash)) FROM Commit c GROUP by cast(c.date as date) ORDER by cast(c.date as date)")
|
||||
List<CommitTimeStatistic> getCommitTimeStatistic();
|
||||
|
||||
// @Query("SELECT new ru.ulstu.extractor.model.CommitEntityStatistic(f.containsEntity, COUNT(DISTINCT f.commit.hash)) FROM FileChange f GROUP by f.containsEntity")
|
||||
// List<CommitEntityStatistic> getCommitEntityStatistic();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user