aboutsummaryrefslogtreecommitdiff
path: root/newspipe/web/views/api/v2/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'newspipe/web/views/api/v2/common.py')
-rw-r--r--newspipe/web/views/api/v2/common.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/newspipe/web/views/api/v2/common.py b/newspipe/web/views/api/v2/common.py
index 36817118..72e562fa 100644
--- a/newspipe/web/views/api/v2/common.py
+++ b/newspipe/web/views/api/v2/common.py
@@ -23,16 +23,18 @@ from functools import wraps
from flask import request
from flask_login import current_user
-from flask_restful import Resource, reqparse
-from werkzeug.exceptions import BadRequest, Forbidden, NotFound, Unauthorized
+from flask_restful import reqparse
+from flask_restful import Resource
+from werkzeug.exceptions import BadRequest
+from werkzeug.exceptions import Forbidden
+from werkzeug.exceptions import NotFound
+from werkzeug.exceptions import Unauthorized
from newspipe.controllers import UserController
-from newspipe.web.views.common import (
- admin_permission,
- api_permission,
- jsonify,
- login_user_bundle,
-)
+from newspipe.web.views.common import admin_permission
+from newspipe.web.views.common import api_permission
+from newspipe.web.views.common import jsonify
+from newspipe.web.views.common import login_user_bundle
logger = logging.getLogger(__name__)
@@ -102,7 +104,7 @@ class PyAggAbstractResource(Resource):
attrs = self.controller_cls._get_attrs_desc("base", right)
assert attrs, "No defined attrs for %s" % self.__class__.__name__
- for attr_name, attr in attrs.items():
+ for attr_name, _attr in attrs.items():
if not default and attr_name not in in_values:
continue
else:
bgstack15