diff options
-rw-r--r-- | src/web/lib/article_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/lib/article_utils.py b/src/web/lib/article_utils.py index de8a78a4..f79c1b30 100644 --- a/src/web/lib/article_utils.py +++ b/src/web/lib/article_utils.py @@ -16,8 +16,8 @@ def extract_id(entry, keys=[('link', 'link'), ('published', 'date'), """ entry_id = entry.get('entry_id') or entry.get('id') if entry_id: + return {'entry_id': entry_id} if not entry_id and force_id: - logger.info('no entry id!!!') return to_hash("".join(entry[entry_key] for _, entry_key in keys if entry_key in entry).encode('utf8')) else: |