From bd99071174bfa80d179dd32673200f51000b86b5 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 4 Aug 2023 12:49:40 +0300 Subject: Initialise the application and update some module imports --- gn_auth/auth/authorisation/checks.py | 2 +- gn_auth/auth/authorisation/privileges.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gn_auth/auth/authorisation') diff --git a/gn_auth/auth/authorisation/checks.py b/gn_auth/auth/authorisation/checks.py index 1c87c02..02c6810 100644 --- a/gn_auth/auth/authorisation/checks.py +++ b/gn_auth/auth/authorisation/checks.py @@ -4,7 +4,7 @@ from typing import Callable from flask import request, current_app as app -from gn3.auth import db +from gn_auth.auth import db from . import privileges as auth_privs from .errors import InvalidData, AuthorisationError diff --git a/gn_auth/auth/authorisation/privileges.py b/gn_auth/auth/authorisation/privileges.py index dbb4129..1b0f06c 100644 --- a/gn_auth/auth/authorisation/privileges.py +++ b/gn_auth/auth/authorisation/privileges.py @@ -1,8 +1,8 @@ """Handle privileges""" from typing import Any, Iterable, NamedTuple -from gn3.auth import db -from gn3.auth.authentication.users import User +from gn_auth.auth import db +from gn_auth.auth.authentication.users import User class Privilege(NamedTuple): """Class representing a privilege: creates immutable objects.""" -- cgit v1.2.3