Skip to content

Commit

Permalink
Actually fixed the bug this time. I need to sleep...
Browse files Browse the repository at this point in the history
  • Loading branch information
9b committed Jun 12, 2018
1 parent a25881a commit 6fb9888
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def get_article(item, source, reprocess=False):
articles.insert(article)
except Exception as e:
pass
if processed:
print(processed)
articles.update({'_id': ObjectId(processed['_id'])}, {'$set': article})
monitor = get_monitor_obj(article['feed_source'])
return {'article': article, 'monitor': monitor, 'from_store': False}
Expand Down

0 comments on commit 6fb9888

Please sign in to comment.