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 " +\