diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-05-29 22:58:20 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-05-29 22:58:20 +0200 |
commit | b0049442eee94a1636490c091215bd706f819558 (patch) | |
tree | e44b18eddfcc0134ed4fc2b38821740617fac694 /src/manager.py | |
parent | Bugfix: it was not possible to delete a user with categories. (diff) | |
download | newspipe-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-x | src/manager.py | 6 |
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 = [] |