Parcourir la source

add condition for terminated membership

Julien Rabier il y a 13 ans
Parent
commit
4aca3ad7ac
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      adhcount.py

+ 1 - 1
adhcount.py

@@ -7,7 +7,7 @@ import MySQLdb
 connection = MySQLdb.connect(host = "localhost", user = "user", passwd = "password", db = "dolibarr_database")
 cursor = connection.cursor()
 
-cursor.execute("select count(*) from llx_adherent")
+cursor.execute("select count(*) from llx_adherent where statut = '1'")
 
 row = cursor.fetchone()