diff --git a/doveauth/src/doveauth/database.py b/doveauth/src/doveauth/database.py index eb75e40..1187fb8 100644 --- a/doveauth/src/doveauth/database.py +++ b/doveauth/src/doveauth/database.py @@ -76,7 +76,9 @@ class Database: self.path = Path(path) self.ensure_tables() - def _get_connection(self, write=False, transaction=False, closing=False) -> Connection: + def _get_connection( + self, write=False, transaction=False, closing=False + ) -> Connection: # we let the database serialize all writers at connection time # to play it very safe (we don't have massive amounts of writes). mode = "ro" diff --git a/doveauth/src/doveauth/doveauth.py b/doveauth/src/doveauth/doveauth.py index 258218a..de50d95 100644 --- a/doveauth/src/doveauth/doveauth.py +++ b/doveauth/src/doveauth/doveauth.py @@ -9,8 +9,8 @@ def get_user_data(db, user): with db.read_connection() as conn: result = conn.get_user(user) if result: - result['uid'] = "vmail" - result['gid'] = "vmail" + result["uid"] = "vmail" + result["gid"] = "vmail" return result