aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/lib
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-03-03 23:05:21 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-03-03 23:05:21 +0100
commit8e515cbf172f1aa7da37882fc3973f5a2dd70dd0 (patch)
treeae0a275bf82c62eca621a020a0e6ac1f6928e6d3 /pyaggr3g470r/lib
parentfixing documentation for the new (diff)
downloadnewspipe-8e515cbf172f1aa7da37882fc3973f5a2dd70dd0.tar.gz
newspipe-8e515cbf172f1aa7da37882fc3973f5a2dd70dd0.tar.bz2
newspipe-8e515cbf172f1aa7da37882fc3973f5a2dd70dd0.zip
last fixes
Diffstat (limited to 'pyaggr3g470r/lib')
-rw-r--r--pyaggr3g470r/lib/crawler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyaggr3g470r/lib/crawler.py b/pyaggr3g470r/lib/crawler.py
index c00b0dbf..64ef8b6d 100644
--- a/pyaggr3g470r/lib/crawler.py
+++ b/pyaggr3g470r/lib/crawler.py
@@ -148,9 +148,10 @@ class PyAggUpdater(AbstractCrawler):
logger.debug('%r %r - %d entries were not matched and will be created',
self.feed['id'], self.feed['title'], len(results))
for id_to_create in results:
- entry = self.entries[tuple(sorted(id_to_create.items()))]
+ entry = self.to_article(
+ self.entries[tuple(sorted(id_to_create.items()))])
logger.info('creating %r - %r', entry['title'], id_to_create)
- self.query_pyagg('post', 'article', self.to_article(entry))
+ self.query_pyagg('post', 'article', entry)
now = datetime.now()
logger.debug('%r %r - updating feed etag %r last_mod %r',
bgstack15