WIP: adhesion, forgejo API
This commit is contained in:
parent
2840b6333b
commit
0e0527645d
|
@ -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
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue