From 049234caaeb4748c34fbdaa4417c685763ff9f99 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 15 Mar 2021 10:07:59 +0100 Subject: [PATCH] Fix hello asso check --- apps/participation/management/commands/check_hello_asso.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/management/commands/check_hello_asso.py b/apps/participation/management/commands/check_hello_asso.py index 35e22f2..0e48b3f 100644 --- a/apps/participation/management/commands/check_hello_asso.py +++ b/apps/participation/management/commands/check_hello_asso.py @@ -38,7 +38,7 @@ class Command(BaseCommand): self.stderr.write(f"Error while querying Hello Asso: {message}") return - for payment in response: + for payment in response["data"]: if payment["state"] != "Authorized": continue