diff options
Diffstat (limited to 'gn_auth/auth/authorisation')
-rw-r--r-- | gn_auth/auth/authorisation/data/genotypes.py | 2 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/data/mrna.py | 2 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/data/phenotypes.py | 2 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/groups/data.py | 2 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/gn_auth/auth/authorisation/data/genotypes.py b/gn_auth/auth/authorisation/data/genotypes.py index 61963a6..f5cf11c 100644 --- a/gn_auth/auth/authorisation/data/genotypes.py +++ b/gn_auth/auth/authorisation/data/genotypes.py @@ -4,7 +4,7 @@ from typing import Iterable from MySQLdb.cursors import DictCursor -import gn_auth.auth.db as authdb +import gn_auth.auth.db.sqlite3 as authdb import gn_auth.auth.db.mariadb as gn3db from gn_auth.auth.dictify import dictify from gn_auth.auth.authorisation.checks import authorised_p diff --git a/gn_auth/auth/authorisation/data/mrna.py b/gn_auth/auth/authorisation/data/mrna.py index 79ea7c0..b80ffe5 100644 --- a/gn_auth/auth/authorisation/data/mrna.py +++ b/gn_auth/auth/authorisation/data/mrna.py @@ -3,7 +3,7 @@ import uuid from typing import Iterable from MySQLdb.cursors import DictCursor -import gn_auth.auth.db as authdb +import gn_auth.auth.db.sqlite3 as authdb import gn_auth.auth.db.mariadb as gn3db from gn_auth.auth.dictify import dictify from gn_auth.auth.authorisation.checks import authorised_p diff --git a/gn_auth/auth/authorisation/data/phenotypes.py b/gn_auth/auth/authorisation/data/phenotypes.py index d3cc33a..0220201 100644 --- a/gn_auth/auth/authorisation/data/phenotypes.py +++ b/gn_auth/auth/authorisation/data/phenotypes.py @@ -4,7 +4,7 @@ from typing import Any, Iterable from MySQLdb.cursors import DictCursor -import gn_auth.auth.db as authdb +import gn_auth.auth.db.sqlite3 as authdb import gn_auth.auth.db.mariadb as gn3db from gn_auth.auth.dictify import dictify from gn_auth.auth.authorisation.checks import authorised_p diff --git a/gn_auth/auth/authorisation/groups/data.py b/gn_auth/auth/authorisation/groups/data.py index 2d9ddb5..a73ae3d 100644 --- a/gn_auth/auth/authorisation/groups/data.py +++ b/gn_auth/auth/authorisation/groups/data.py @@ -2,7 +2,7 @@ from MySQLdb.cursors import DictCursor from gn_auth.auth.db import mariadb as gn3db -from gn_auth.auth.db import sqlite3 as authdb +import gn_auth.auth.db.sqlite3 as authdb from gn_auth.auth.authorisation.groups import Group from gn_auth.auth.authorisation.checks import authorised_p from gn_auth.auth.authorisation.errors import NotFoundError 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 |