aboutsummaryrefslogtreecommitdiff
path: root/src/web/lib
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-28 14:51:12 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-28 14:51:12 +0200
commit6ef0a7fef41bf085a2195f212b87fd96114ff3b0 (patch)
tree968d802407b82f7ba5e1109a05d544c138ddf105 /src/web/lib
parentBugfix. (diff)
downloadnewspipe-6ef0a7fef41bf085a2195f212b87fd96114ff3b0.tar.gz
newspipe-6ef0a7fef41bf085a2195f212b87fd96114ff3b0.tar.bz2
newspipe-6ef0a7fef41bf085a2195f212b87fd96114ff3b0.zip
Bugfix.
Diffstat (limited to 'src/web/lib')
-rw-r--r--src/web/lib/article_utils.py2
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:
bgstack15