diff --git a/README.md b/README.md index aab5df3..2df308b 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,10 @@ You must create [user custom attribute](https://admin.google.com/ac/customschema } ``` -## Hello asso +## HelloAsso [Documentation](https://centredaide.helloasso.com/s/article/api-comment-fonctionne-l-api-helloasso) -Custom fields +Custom fields (Actually hard-coded) ```json { "name": "Pseudonyme", @@ -64,7 +64,9 @@ Custom fields "type": "YesNo", } ``` - +To use the commands, please provide the requested form slug. \ +For exemple, for form at `helloasso.com/associations/masuperassociation/adhesions/adhesion-2024-2025/` , the slug is `adhesion-2024-2025` \ +Resulting in, for exemple, the following command : `/ha_check_update form_slug:adhesion-2024-2025` # Install ```bash @@ -91,7 +93,7 @@ python3 -m les_louisdelatech.main -c config.toml -g google.json # Dev Install [uv](https://docs.astral.sh/uv/getting-started/installation/) -Install and setup dependencies with `uv sync` +Install and setup dependencies with `uv sync --all-extras` ## Run ruff ``` diff --git a/src/les_louisdelatech/utils/User.py b/src/les_louisdelatech/utils/User.py index e9496be..9beb0de 100644 --- a/src/les_louisdelatech/utils/User.py +++ b/src/les_louisdelatech/utils/User.py @@ -97,21 +97,21 @@ def from_hello_asso(cls, order: Dict): item["phone"] = custom_field["answer"] elif "Taille du tee-shirt" == custom_field["name"]: item["tee_shirt"] = custom_field["answer"] - elif ( - "Je m'engage à signer l'engagement de confidentialité" - in custom_field["name"] - ): - item["confidentiality"] = custom_field["answer"] + # elif ( + # "Je m'engage à signer l'engagement de confidentialité" + # in custom_field["name"] + # ): + # item["confidentiality"] = custom_field["answer"] break if item is None: raise LouisDeLaTechError( f"{order['payer']['firstName']} {order['payer']['lastName']} no valid membership found (or not processed)" ) - elif item["confidentiality"] == "Non": - raise LouisDeLaTechError( - f"{order['payer']['firstName']} {order['payer']['lastName']} disagree to sign the confidentiality agreement" - ) + # elif item["confidentiality"] == "Non": + # raise LouisDeLaTechError( + # f"{order['payer']['firstName']} {order['payer']['lastName']} disagree to sign the confidentiality agreement" + # ) return cls( item["firstname"],