aboutsummaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'manager.py')
-rwxr-xr-xmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager.py b/manager.py
index 979f123e..008c7775 100755
--- a/manager.py
+++ b/manager.py
@@ -1,8 +1,6 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
-import asyncio
-
from bootstrap import application, db, populate_g
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
@@ -39,6 +37,8 @@ def fetch(user, password, limit=100, retreive_all=False):
@manager.command
def fetch_asyncio(user_id, feed_id):
"Crawl the feeds with asyncio."
+ import asyncio
+
with application.app_context():
populate_g()
from pyaggr3g470r.models import User
bgstack15