Add per-repo counts to EGG
This commit is contained in:
21
www/extern/egg/db_queryyear.sql
vendored
21
www/extern/egg/db_queryyear.sql
vendored
@@ -1,11 +1,14 @@
|
||||
SELECT commitdate AS commitdate, COUNT(*) as count FROM
|
||||
(
|
||||
SELECT
|
||||
commits.[hash] AS hash, min([author_email]) AS mail1, min([committer_email]) AS mail2, date(min([date])) AS commitdate
|
||||
FROM commits
|
||||
LEFT JOIN metadata ON commits.hash = metadata.hash
|
||||
GROUP BY commits.[hash]
|
||||
HAVING (strftime('%Y', commitdate) = :year AND (/*{INDETITY_COND}*/))
|
||||
)
|
||||
SELECT
|
||||
commitdate AS commitdate,
|
||||
COUNT(*) as count
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
commits.[hash] AS hash, min([author_email]) AS mail1, min([committer_email]) AS mail2, date(min([date])) AS commitdate
|
||||
FROM commits
|
||||
LEFT JOIN metadata ON commits.hash = metadata.hash
|
||||
GROUP BY commits.[hash]
|
||||
HAVING (strftime('%Y', commitdate) = :year AND (/*{IDENTITY_COND}*/))
|
||||
)
|
||||
GROUP BY commitdate
|
||||
ORDER BY commitdate
|
||||
Reference in New Issue
Block a user