From e222e2abaff88c579b41a71c7198be8c41546bce Mon Sep 17 00:00:00 2001 From: Etchegoyen Matthieu Date: Mon, 2 Dec 2024 12:26:19 +0100 Subject: [PATCH] WIP --- recoco/apps/demarches_simplifiees/adapters/79838.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recoco/apps/demarches_simplifiees/adapters/79838.py b/recoco/apps/demarches_simplifiees/adapters/79838.py index d119f9f13..eb180f603 100644 --- a/recoco/apps/demarches_simplifiees/adapters/79838.py +++ b/recoco/apps/demarches_simplifiees/adapters/79838.py @@ -10,13 +10,13 @@ def make(project: Project) -> dict[str, Any]: "champ_Q2hhbXAtMzUyMTg1Mg": project.name, } - if referrer := project.owner: + if owner := project.owner: d.update( { - "champ_Q2hhbXAtMzUyMTg0Ng": f"{referrer.last_name} {referrer.first_name}", - "champ_Q2hhbXAtMzUyMTg0OA": referrer.email, - "champ_Q2hhbXAtMzUyMTg0Nw": referrer.organization_position, - "champ_Q2hhbXAtMzUyMTg0OQ": referrer.phone_no, + "champ_Q2hhbXAtMzUyMTg0Ng": f"{owner.last_name} {owner.first_name}", + "champ_Q2hhbXAtMzUyMTg0OA": owner.email, + "champ_Q2hhbXAtMzUyMTg0Nw": owner.profile.organization_position, + "champ_Q2hhbXAtMzUyMTg0OQ": owner.profile.phone_no.as_international, } )