Group by actual columns rather than calculated value

This commit is contained in:
2020-12-26 17:00:08 -08:00
parent a064d70f7a
commit 4b3dc5ac3f
+1 -1
View File
@@ -324,7 +324,7 @@ async function getArticleCounts(db, year) {
printf('%02d', month) AS m
FROM article
WHERE year = @year
GROUP BY year_month
GROUP BY year, month
ORDER BY year_month
`).all({ year })
return counts.map((c) => {