]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
[bde/stats/depense] On le passe en python
authorVincent Le Gallic <legallic@crans.org>
Sat, 14 Feb 2015 16:17:07 +0000 (17:17 +0100)
committerVincent Le Gallic <legallic@crans.org>
Sat, 14 Feb 2015 16:17:36 +0000 (17:17 +0100)
bde/stats/depense.sh [deleted file]
bde/stats/depenses.py [new file with mode: 0755]

diff --git a/bde/stats/depense.sh b/bde/stats/depense.sh
deleted file mode 100755 (executable)
index d429c99..0000000
+++ /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 (executable)
index 0000000..d429c99
--- /dev/null
@@ -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;"