Stringifying JSON feed ids (in case they're integers).

This commit is contained in:
Samuel Clay 2018-02-13 00:02:18 -08:00
parent 9abe68bc1c
commit 95366bcf99

View file

@ -49,7 +49,7 @@ class JSONFetcher:
'description': item.get('content_html', item.get('content_text', None)),
'author_name': item.get('author', {}).get('name', None),
'categories': item.get('tags', []),
'unique_id': item.get('id', item.get('url', None)),
'unique_id': unicode(item.get('id', item.get('url', None))),
'pubdate': date_published,
}