initial stage
This commit is contained in:
parent
2eb2a94da5
commit
801516be67
|
@ -52,7 +52,8 @@ def trasform_product(p: dict) -> dict:
|
|||
filter(lambda topic: topic.get('topic').get('scheme') == 'FOS', p.get('topics')))))
|
||||
|
||||
p['firstPublishDate'] = next(
|
||||
iter(sorted(filter(lambda date: date.get('type') == 'publishing', p.get('manifestations').get('dates')))),
|
||||
iter(sorted(filter(lambda date: date.get('type') == 'publishing',
|
||||
[date for m in p.get('manifestations') for date in m.get('dates')]))),
|
||||
None)
|
||||
|
||||
return p
|
||||
|
|
Loading…
Reference in New Issue