From 372bd8eb208595329a63f43d55351cec671bc4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 22 Aug 2025 11:45:17 +0200 Subject: [PATCH] zmiana, domyslnie current month --- static/js/expense_chart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/expense_chart.js b/static/js/expense_chart.js index 58d69cd..c525255 100644 --- a/static/js/expense_chart.js +++ b/static/js/expense_chart.js @@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", function () { window.selectedCategoryId = ""; } - function loadExpenses(range = "last30days", startDate = null, endDate = null) { + function loadExpenses(range = "currentmonth", startDate = null, endDate = null) { let url = '/expenses_data?range=' + range; const showAllCheckbox = document.getElementById("showAllLists"); @@ -15,7 +15,7 @@ document.addEventListener("DOMContentLoaded", function () { url += showAllCheckbox.checked ? '&show_all=true' : '&show_all=false'; } else { url += '&show_all=true'; - } + } if (startDate && endDate) { url += `&start_date=${startDate}&end_date=${endDate}`;