diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-04-15 15:07:19 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-04-16 09:10:35 +0200 |
commit | 7c145da932191effab00f585664980d2e591b3df (patch) | |
tree | 4664a8f2432b974272ec70183342edbece8565bc /conf.py | |
parent | No bad default 'No title' for feed creation (diff) | |
download | newspipe-7c145da932191effab00f585664980d2e591b3df.tar.gz newspipe-7c145da932191effab00f585664980d2e591b3df.tar.bz2 newspipe-7c145da932191effab00f585664980d2e591b3df.zip |
redoing full text search
using SQL LIKE condition
using main home design for displaying results
Diffstat (limited to 'conf.py')
-rw-r--r-- | conf.py | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,11 +1,9 @@ #! /usr/bin/env python -#-*- coding: utf-8 -*- - +# -*- coding: utf-8 -*- """ Program variables. This file contain the variables used by the application. """ - import os basedir = os.path.abspath(os.path.dirname(__file__)) @@ -29,7 +27,7 @@ DEFAULTS = {"python": "/usr/bin/python3.4", "nb_worker": "100", "default_max_error": "3", "log_path": "pyaggr3g470r.log", - "user_agent": "pyAggr3g470r " \ + "user_agent": "pyAggr3g470r " "(https://bitbucket.org/cedricbonhomme/pyaggr3g470r)", "resolve_article_url": "false", "http_proxy": "", @@ -42,7 +40,7 @@ DEFAULTS = {"python": "/usr/bin/python3.4", "host": "0.0.0.0", "port": "5000", "crawling_method": "classic", -} + } if not ON_HEROKU: try: @@ -105,7 +103,8 @@ else: "(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)) - CRAWLING_METHOD = os.environ.get('CRAWLING_METHOD', DEFAULTS['crawling_method']) + CRAWLING_METHOD = os.environ.get('CRAWLING_METHOD', + DEFAULTS['crawling_method']) WEBSERVER_DEBUG = False WEBSERVER_HOST = '0.0.0.0' |