From 53bc76aeab3faa66fe868f4fff266a3e51ed0ef3 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 21 Nov 2019 15:47:09 +0100 Subject: [PATCH] granularity isn't what you think it is --- public/pure.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/public/pure.html b/public/pure.html index e5c9986..8afbb17 100644 --- a/public/pure.html +++ b/public/pure.html @@ -94,19 +94,19 @@ Controls.period.set( current_period ); }, }, - granularity: { - set: ( value ) => { - if ( !isNaN( parseInt( value ) ) ) { - granularity = parseInt( value ); + /* granularity: { + * set: ( value ) => { + * if ( !isNaN( parseInt( value ) ) ) { + * granularity = parseInt( value ); - monthly(); - } - } - } + * monthly(); + * } + * } + * } */ }; const monthly = () => { - API.balance( current_period.toISOString().split("T")[0].slice( 0, -3 ), ["Expenses"].join(" "), granularity ) + API.balance( current_period.toISOString().split("T")[0].slice( 0, -3 ), ["Expenses"].join(" "), 999 ) .then( balance => { const total = balance.reduce( (memo, line) => memo + line.amount, 0 ); @@ -130,9 +130,9 @@

-
- -
+