Commit 299de68a authored by Alberto Cammozzo's avatar Alberto Cammozzo

correct year in archive if datepublished is null

parent 0edcb8c4
......@@ -317,7 +317,7 @@ def processArticle(meta, art, articleDB, archiveDB, logDB, verbose):
bzhtml=bz2.compress(html)
archive={
'artuuid':article['uuid'],
'year': article['datesPublished'][0].year,
'year': article['year'],
'source':meta['source'],
'bzhtml':bzhtml,
'download-ts': ts,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment