aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/api/v2/common.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/web/views/api/v2/common.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/web/views/api/v2/common.py')
-rw-r--r--src/web/views/api/v2/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/views/api/v2/common.py b/src/web/views/api/v2/common.py
index 0227d6cf..04b19d78 100644
--- a/src/web/views/api/v2/common.py
+++ b/src/web/views/api/v2/common.py
@@ -23,8 +23,8 @@ import logging
from functools import wraps
from werkzeug.exceptions import Unauthorized, BadRequest, Forbidden, NotFound
from flask import request
-from flask.ext.restful import Resource, reqparse
-from flask.ext.login import current_user
+from flask_restful import Resource, reqparse
+from flask_login import current_user
from web.views.common import admin_permission, api_permission, \
login_user_bundle, jsonify
bgstack15