From bda6c17d1b3a4b5dd3cfb3c74175fbd22661c981 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 15 Sep 2022 00:04:07 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20contr=C3=B4le=20cotisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 81c23c8..2a7f451 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -164,8 +164,7 @@ def gestion_get_amount(member): "WHERE id_user = {};".format(member) - print(gestion_read(request_unpaid)) - return 20 + return gestion_read(request_unpaid)["results"][-1]["amount"] def get_member_infos(member): request = "SELECT * FROM membres " +\