aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-08-05 17:25:51 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-08-05 17:29:24 +0200
commitafcfb5cf3eef2e2b15cc85dd4d4485c994045d14 (patch)
tree655375d0174ba69114baa76d621333bf30630332 /pyaggr3g470r
parentmaking it easier to request with lists (diff)
downloadnewspipe-afcfb5cf3eef2e2b15cc85dd4d4485c994045d14.tar.gz
newspipe-afcfb5cf3eef2e2b15cc85dd4d4485c994045d14.tar.bz2
newspipe-afcfb5cf3eef2e2b15cc85dd4d4485c994045d14.zip
fixing bug preventing from bumping error count from api crawler for none admin user
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/lib/crawler.py3
-rw-r--r--pyaggr3g470r/templates/feed_list.html2
2 files changed, 3 insertions, 2 deletions
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 %}
<i class="glyphicon glyphicon-eye-close" title="{{ _('Feed disabled') }}"></i>
{% endif %}
- {% if feed.error_count > conf.DEFAULT_MAX_ERROR %}
+ {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %}
<i class="glyphicon glyphicon-exclamation-sign" title="{{ _('Feed encountered too much errors.') }}"></i>
{% endif %}
</td>
bgstack15