aboutsummaryrefslogtreecommitdiff
path: root/src/manager.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-05-29 22:58:20 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-05-29 22:58:20 +0200
commitb0049442eee94a1636490c091215bd706f819558 (patch)
treee44b18eddfcc0134ed4fc2b38821740617fac694 /src/manager.py
parentBugfix: it was not possible to delete a user with categories. (diff)
downloadnewspipe-b0049442eee94a1636490c091215bd706f819558.tar.gz
newspipe-b0049442eee94a1636490c091215bd706f819558.tar.bz2
newspipe-b0049442eee94a1636490c091215bd706f819558.zip
Fixed some depreciations with the new version of Flask.
Diffstat (limited to 'src/manager.py')
-rwxr-xr-xsrc/manager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/manager.py b/src/manager.py
index d5e91d70..98161555 100755
--- a/src/manager.py
+++ b/src/manager.py
@@ -5,8 +5,8 @@ import os
import logging
from werkzeug import generate_password_hash
from bootstrap import application, db, conf
-from flask.ext.script import Manager
-from flask.ext.migrate import Migrate, MigrateCommand
+from flask_script import Manager
+from flask_migrate import Migrate, MigrateCommand
import web.models
from web.controllers import FeedController, UserController
@@ -54,7 +54,7 @@ def fetch_asyncio(user_id, feed_id):
import asyncio
with application.app_context():
- from flask.ext.login import current_user
+ from flask_login import current_user
from crawler import classic_crawler
ucontr = UserController()
users = []
bgstack15