From 0098f7731144e0b90ba9587e11959f0e1d24c878 Mon Sep 17 00:00:00 2001 From: Hugo Lecuyer Date: Wed, 31 Jul 2024 14:58:51 +0200 Subject: [PATCH] feat(FT): add format date comment --- pipeline/dags/dag_utils/sources/france_travail.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pipeline/dags/dag_utils/sources/france_travail.py b/pipeline/dags/dag_utils/sources/france_travail.py index ecfec8dd6..6b853384e 100644 --- a/pipeline/dags/dag_utils/sources/france_travail.py +++ b/pipeline/dags/dag_utils/sources/france_travail.py @@ -45,6 +45,15 @@ def same_values_every_day(formated_horaires: Dict[str, str]) -> bool: def format_date_ft_to_open_street_map( horaires: Optional[List[Dict[str, Any]]], ) -> Optional[str]: + """Format horaires from France Travail to Open Street Map format + cf: https://francetravail.io/data/api/referentiel-agences?tabgroup-api=documentation&doc-section=api-doc-section-caracteristiques + cf: https://wiki.openstreetmap.org/wiki/Key:opening_hours + The object horaires also contains information on openning hours for appointment + only. + We could added it in this format for example: + "Mo 12:00-14:00 open "Sans RDv", Mo 14:00-16:00 open "Sur RDV seulement"; PH off" + Because of the complexity of the format, we will not implement it for now. + """ if not horaires: return None