WIP: adhesion, forgejo API

This commit is contained in:
Adrien Bourmault 2023-11-04 13:17:44 +01:00
parent 2840b6333b
commit 0e0527645d
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ def validate_registrations_worker():
is_redir) is_redir)
labels = [970] labels = [970]
ticket_response = forgejo_post_issue("cominfra", "mail", title, body, labels) 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( BUF.append("Validation échouée : ticket git MAIL en erreur : {}".format(
ticket_response ticket_response
)) ))
@ -289,7 +289,7 @@ def validate_registrations_worker():
member['email']) member['email'])
labels = [970] labels = [970]
ticket_response = forgejo_post_issue("cominfra", "mail", title, body, labels) 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( BUF.append("Validation échouée : ticket git XMPP en erreur : {}".format(
ticket_response ticket_response
)) ))