diff --git a/api.py b/api.py index 22a2136..bfb30df 100644 --- a/api.py +++ b/api.py @@ -150,7 +150,7 @@ class Contact(BaseModel): linkedin: Optional[str] = Field(None, description="Profil LinkedIn (CT_LinkedIn)") skype: Optional[str] = Field(None, description="Identifiant Skype (CT_Skype)") - _civilite_map = { + civilite_map = { 0: "M.", 1: "Mme", 2: "Mlle", @@ -166,7 +166,7 @@ class Contact(BaseModel): if v is None: return v if isinstance(v, int): - return cls._civilite_map.get(v, str(v)) # retourne le code en string si non mappé + return cls.civilite_map.get(v, str(v)) # retourne le code en string si non mappé return v class Config: