From 0e0527645dc15d35767044bb5d6f4ef11bd29b20 Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Sat, 4 Nov 2023 13:17:44 +0100 Subject: [PATCH] WIP: adhesion, forgejo API --- controle_adhesion/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controle_adhesion/main.py b/controle_adhesion/main.py index 483b2e7..99f6758 100755 --- a/controle_adhesion/main.py +++ b/controle_adhesion/main.py @@ -271,7 +271,7 @@ def validate_registrations_worker(): is_redir) labels = [970] ticket_response = forgejo_post_issue("cominfra", "mail", title, body, labels) - if not "id" in str(ticket_response): + if not "id" in str(ticket_response.json()): BUF.append("Validation échouée : ticket git MAIL en erreur : {}".format( ticket_response )) @@ -289,7 +289,7 @@ def validate_registrations_worker(): member['email']) labels = [970] ticket_response = forgejo_post_issue("cominfra", "mail", title, body, labels) - if not "id" in str(ticket_response): + if not "id" in str(ticket_response.json()): BUF.append("Validation échouée : ticket git XMPP en erreur : {}".format( ticket_response ))