From: Vincent Le Gallic Date: Thu, 18 Feb 2016 10:13:51 +0000 (+0100) Subject: Seulement les transactions de montant non nul X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=a21ba9243cdf8ff4daa6192ee7bb31d9d3dc8d01;p=scripts-20-100.git Seulement les transactions de montant non nul --- diff --git a/sum_transacs_by_categorie.py b/sum_transacs_by_categorie.py index 3e26574..900ed80 100755 --- a/sum_transacs_by_categorie.py +++ b/sum_transacs_by_categorie.py @@ -29,6 +29,7 @@ def get_sum(descriptions, debut, fin): AND date >= %(debut)s AND date < %(fin)s AND destinataire = 0 + AND montant != 0 AND description = ANY (%(descriptions)s); """ con, cur = getcursor()