api.routes.internal.contact.check

Attributes

Functions

check_contact([email, nom, prenom])

Recherche les contacts potentiels dans la table "Personne" d'Airtable.

Module Contents

api.routes.internal.contact.check.logger
api.routes.internal.contact.check.router
api.routes.internal.contact.check.SCORE_EMAIL = 15
api.routes.internal.contact.check.SCORE_NOM = 10
api.routes.internal.contact.check.SCORE_PRENOM = 3
async api.routes.internal.contact.check.check_contact(email: str | None = Query(None, description='Email du contact'), nom: str | None = Query(None, description='Nom du contact'), prenom: str | None = Query(None, description='Prénom du contact'))

Recherche les contacts potentiels dans la table “Personne” d’Airtable.

Stratégie : - Email fourni → recherche par Email OR Nom, puis bonus prénom +3 - Pas d’email → recherche par Nom OR Prénom

Scoring : Email +15, Nom +10, Prénom +3