From 50192b8aab87eebad1df8d699355dae6024c6406 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 8 Apr 2015 07:46:38 +0200 Subject: The minimum error count is now specified in the configuration file. --- conf.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'conf.py') diff --git a/conf.py b/conf.py index 7f3e82ff..0d11cae7 100644 --- a/conf.py +++ b/conf.py @@ -48,6 +48,7 @@ if not ON_HEROKU: HTTP_PROXY = config.get('feedparser', 'http_proxy') USER_AGENT = config.get('feedparser', 'user_agent') RESOLVE_ARTICLE_URL = int(config.get('feedparser', 'resolve_article_url')) == 1 + DEFAULT_MAX_ERROR = int(config.get('feedparser', 'default_max_error')) WEBSERVER_DEBUG = int(config.get('webserver', 'debug')) == 1 WEBSERVER_HOST = config.get('webserver', 'host') @@ -77,6 +78,7 @@ else: HTTP_PROXY = "" USER_AGENT = "Mozilla/5.0 (X11; Debian; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0" RESOLVE_ARTICLE_URL = int(os.environ.get('RESOLVE_ARTICLE_URL', 0)) == 1 + DEFAULT_MAX_ERROR = int(os.environ.get('DEFAULT_MAX_ERROR', 6)) WEBSERVER_DEBUG = False WEBSERVER_HOST = '0.0.0.0' -- cgit