From 12893ddea0b7524e7d8052a659054b817a4517e8 Mon Sep 17 00:00:00 2001 From: r-carroll Date: Sat, 27 Jul 2024 13:42:33 -0400 Subject: [PATCH] fix / --- static/reading.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/reading.js b/static/reading.js index 085cb9a..9bfc09f 100644 --- a/static/reading.js +++ b/static/reading.js @@ -29,7 +29,7 @@ function updateTally(tallyType = 'reading') { } async function getTimespans(tallyType = 'reading') { - const response = await fetch(`${apiUrl}/${tallyType}.timespans`); + const response = await fetch(`${apiUrl}/${tallyType}/timespans`); const json = await response.json(); let hoursMap = new Map(); let daysMap = new Map();