From 2fe306fdae31a8d4669251bc4ca5b6471a5d2e93 Mon Sep 17 00:00:00 2001 From: Giambattista Bloisi Date: Fri, 5 Apr 2024 17:59:20 +0200 Subject: [PATCH] initial stage --- airflow/dags/EOSC_entity_trasform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/dags/EOSC_entity_trasform.py b/airflow/dags/EOSC_entity_trasform.py index f4a0cb2..82a63f7 100644 --- a/airflow/dags/EOSC_entity_trasform.py +++ b/airflow/dags/EOSC_entity_trasform.py @@ -56,7 +56,7 @@ def trasform_product(p: dict) -> dict: sorted( map(lambda date: date.get('value'), filter(lambda date: date.get('type') == 'publishing', - [date for m in p.get('manifestations') for date in m.get('dates')])))), + [date for m in (p.get('manifestations') or []) for date in (m.get('dates') or [])])))), None) return p