diff options
author | Frederick Muriuki Muriithi | 2023-08-08 04:47:02 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-08 04:47:02 +0300 |
commit | b2c23d6ddcb581a1dfd44f3a695aab15b35c9b63 (patch) | |
tree | b7c049fb75afda32589847d8517c6218c7f29014 /gn_auth/auth/authorisation/resources | |
parent | d88ef631a78c32baed34a126d79f4679a2f09d10 (diff) | |
download | gn-auth-b2c23d6ddcb581a1dfd44f3a695aab15b35c9b63.tar.gz |
Fix issues caught by linter
* Add a .pylintrc to silence annoying messages
* Fix imports
* Add missing `parse_db_url` function
* Add a new `gn_auth.auth.db.redis` module
Diffstat (limited to 'gn_auth/auth/authorisation/resources')
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py index 157d5a3..e7af9b9 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -6,6 +6,7 @@ from functools import reduce from flask import request, jsonify, Response, Blueprint, current_app as app +from gn_auth.auth.db import sqlite3 as db from gn_auth.auth.db.sqlite3 import with_db_connection from .checks import authorised_for @@ -19,7 +20,6 @@ from ..roles import Role from ..errors import InvalidData, InconsistencyError, AuthorisationError from ..groups.models import Group, GroupRole, group_role_by_id -from ... import db from ...dictify import dictify from ...authentication.oauth2.resource_server import require_oauth from ...authentication.users import User, user_by_id, user_by_email |