From 4b3dc5ac3fd13abbb3a4f75cb3f80eb2ba77ed9a Mon Sep 17 00:00:00 2001 From: Perception Date: Sat, 26 Dec 2020 17:00:08 -0800 Subject: [PATCH] Group by actual columns rather than calculated value --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 68ec376..475f3b6 100644 --- a/index.js +++ b/index.js @@ -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) => {