Repository navigation
GEIQ: ajout de l'information de structure & son département aux contrats dans le bilan d'exécution [GEN-2542] - #6343
Conversation
| return end - self.start_at + timezone.timedelta(days=1) | ||
|
|
||
| def antenna_department(self): | ||
| antenna = self.other_data.get("antenne") |
There was a problem hiding this comment.
Pour donner un peu de contexte, dans le champs "other_data" d'un contrat on a soit "antenne": {"id": 0, "nom": "GEIQ avec un joli nom"} si le contrat est directement avec le siège (c'est ce que signifie le 0) soit "antenne": {"cp": "12345", "id": 1234, "nom": "Antenne d'une jolie ville", "email": "contact@geiq-joli.fr", "siret": "...", "ville": "...", "adresse": "...", "geiq_id": 123, "adresse2": "...", "telephone": "...", "date_creation": ...} si le contrat est lié à une antenne.
2dff70d to
ec08f3a
Compare
| return | ||
| geiq_post_codes = {} | ||
| for geiq_info in label_infos.data: | ||
| geiq_post_codes[geiq_info["id"]] = geiq_info["cp"] |
There was a problem hiding this comment.
J'imagine qu'il n'y a pas de trou dans les données, il y a toujours un code postal ?
There was a problem hiding this comment.
Il y a toujours ce champ oui :)
There was a problem hiding this comment.
Sauf sur la recette bidouillée où je les avais enlevé à la main 😬
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
🤔 Pourquoi ?
Demande des DDETS/DREETS.
🍰 Comment ?
🚨 À vérifier
🏝️ Comment tester ?
💻 Captures d'écran