From afcfb5cf3eef2e2b15cc85dd4d4485c994045d14 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Wed, 5 Aug 2015 17:25:51 +0200 Subject: fixing bug preventing from bumping error count from api crawler for none admin user --- pyaggr3g470r/lib/crawler.py | 3 ++- pyaggr3g470r/templates/feed_list.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/lib/crawler.py b/pyaggr3g470r/lib/crawler.py index b599e2d4..91942c59 100644 --- a/pyaggr3g470r/lib/crawler.py +++ b/pyaggr3g470r/lib/crawler.py @@ -167,7 +167,8 @@ class FeedCrawler(AbstractCrawler): self.feed['title'], error_count) future = self.query_pyagg('put', 'feed/%d' % self.feed['id'], {'error_count': error_count, - 'last_error': str(error)}) + 'last_error': str(error), + 'user_id': self.feed['user_id']}) return if response.status_code == 304: diff --git a/pyaggr3g470r/templates/feed_list.html b/pyaggr3g470r/templates/feed_list.html index 6ef612b4..c5cadab0 100644 --- a/pyaggr3g470r/templates/feed_list.html +++ b/pyaggr3g470r/templates/feed_list.html @@ -23,7 +23,7 @@ {% else %} {% endif %} - {% if feed.error_count > conf.DEFAULT_MAX_ERROR %} + {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %} {% endif %} -- cgit