From: Vincent Le Gallic Date: Sat, 14 Feb 2015 16:17:07 +0000 (+0100) Subject: [bde/stats/depense] On le passe en python X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=9b3ef15fbbc59a143f131387b9f9af0ec528bc29;p=scripts-20-100.git [bde/stats/depense] On le passe en python --- diff --git a/bde/stats/depense.sh b/bde/stats/depense.sh deleted file mode 100755 index d429c99..0000000 --- a/bde/stats/depense.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Affiche les dépenses totales d'un compte - -psql bde -c "SELECT sum(montant*quantite) FROM transactions WHERE valide AND emetteur=$1;" diff --git a/bde/stats/depenses.py b/bde/stats/depenses.py new file mode 100755 index 0000000..d429c99 --- /dev/null +++ b/bde/stats/depenses.py @@ -0,0 +1,5 @@ +#!/bin/bash + +# Affiche les dépenses totales d'un compte + +psql bde -c "SELECT sum(montant*quantite) FROM transactions WHERE valide AND emetteur=$1;"