|
@@ -12,10 +12,10 @@ connection = MySQLdb.connect(host = "localhost", user = "user", passwd = "passwo
|
|
cursor = connection.cursor()
|
|
cursor = connection.cursor()
|
|
cursor.execute("SELECT COUNT(*) FROM llx_adherent WHERE statut = '1'")
|
|
cursor.execute("SELECT COUNT(*) FROM llx_adherent WHERE statut = '1'")
|
|
row = cursor.fetchone()
|
|
row = cursor.fetchone()
|
|
-data['subscriberCount'] = row[0]
|
|
|
|
|
|
+data['memberCount'] = row[0]
|
|
cursor.execute("SELECT COUNT(*) FROM llx_societe WHERE status = '1' AND client='1'")
|
|
cursor.execute("SELECT COUNT(*) FROM llx_societe WHERE status = '1' AND client='1'")
|
|
row = cursor.fetchone()
|
|
row = cursor.fetchone()
|
|
-data['memberCount'] = row[0]
|
|
|
|
|
|
+data['subscriberCount'] = row[0]
|
|
|
|
|
|
with open(info, 'w') as outfile:
|
|
with open(info, 'w') as outfile:
|
|
json.dump(data, outfile)
|
|
json.dump(data, outfile)
|