From 6bfd9cc285b5967180420a86b47db5743771563f Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 19 Jun 2013 17:50:34 +0000 Subject: add total donations to index.json git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8537 5b7c3c08-40e5-403b-9995-ace06908e4af --- mktreasurer | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mktreasurer') diff --git a/mktreasurer b/mktreasurer index fda59ad..000bef1 100755 --- a/mktreasurer +++ b/mktreasurer @@ -83,6 +83,7 @@ sub donations_infos { by_year => {}, by_pa => {}, total_30 => 0, + total => 0, sorted_pa_by_total => [], ); foreach my $don (@{$res{donations}}) { @@ -100,6 +101,7 @@ sub donations_infos { if (time - $don->{date} < '2592000') { # last 30 days $res{total_30} += $don->{amount}; } + $res{total} += $don->{amount}; } foreach my $d ((values %{$res{by_month}}), (values %{$res{by_year}}), (values %{$res{by_pa}})) { -- cgit v1.2.1