From d41bafdecbce7018c5a0d632d0a4c50e3b9baa3d Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Wed, 8 Nov 2023 15:37:34 +1300 Subject: [PATCH] Format InsightsPage --- InsightsPage.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/InsightsPage.tsx b/InsightsPage.tsx index 1f44319..bcd557b 100644 --- a/InsightsPage.tsx +++ b/InsightsPage.tsx @@ -37,19 +37,19 @@ export default function InsightsPage() { if (period === Periods.SixMonths) difference = "-6 months"; const selectWeeks = ` SELECT strftime('%w', created) as week, COUNT(*) as count - FROM sets - WHERE DATE(created) >= DATE('now', 'weekday 0', '${difference}') - GROUP BY week - HAVING week IS NOT NULL - ORDER BY count DESC; + FROM sets + WHERE DATE(created) >= DATE('now', 'weekday 0', '${difference}') + GROUP BY week + HAVING week IS NOT NULL + ORDER BY count DESC; `; const selectHours = ` SELECT strftime('%H', created) AS hour, COUNT(*) AS count - FROM sets - WHERE DATE(created) >= DATE('now', 'weekday 0', '${difference}') - GROUP BY hour - having hour is not null - ORDER BY hour + FROM sets + WHERE DATE(created) >= DATE('now', 'weekday 0', '${difference}') + GROUP BY hour + having hour is not null + ORDER BY hour `; setTimeout(