aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-04 08:30:08 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-04 08:30:08 +0100
commita6d1c3fd860cff01510cd63264cb672c677a2e69 (patch)
tree702fb769db8532c64c0a5ac7132105329b053506 /pyaggr3g470r
parentThe feed abject should be loaded when 'feed_id' is not None. (diff)
downloadnewspipe-a6d1c3fd860cff01510cd63264cb672c677a2e69.tar.gz
newspipe-a6d1c3fd860cff01510cd63264cb672c677a2e69.tar.bz2
newspipe-a6d1c3fd860cff01510cd63264cb672c677a2e69.zip
Test with the old crawler (temporary during the transition).
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/crawler.py4
-rwxr-xr-xpyaggr3g470r/utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py
index 5d2d2d4d..56c3552a 100644
--- a/pyaggr3g470r/crawler.py
+++ b/pyaggr3g470r/crawler.py
@@ -37,8 +37,8 @@ from bs4 import BeautifulSoup
from sqlalchemy import or_
from pyaggr3g470r import utils
-from pyaggr3g470r import conf
-from pyaggr3g470r import db
+import conf
+from bootstrap import db
from pyaggr3g470r.models import User, Article
if not conf.ON_HEROKU:
import pyaggr3g470r.search as fastsearch
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py
index 1fc84ff4..a88c1a98 100755
--- a/pyaggr3g470r/utils.py
+++ b/pyaggr3g470r/utils.py
@@ -79,7 +79,7 @@ def opened_w_error(filename, mode="r"):
f.close()
def fetch(id, feed_id=None):
- cmd = [conf.PYTHON, conf.basedir+'/fetch.py', str(id), str(feed_id)]
+ cmd = [conf.PYTHON, conf.basedir+'/manager.py', 'fetch_old', str(id), str(feed_id)]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
def import_opml(email, opml_content):
bgstack15