fix formatting

This commit is contained in:
holger krekel 2023-10-14 14:34:54 +02:00
parent 802f67cf54
commit 8217dc6f01
No known key found for this signature in database
GPG Key ID: 8E3B03A279B772D6
2 changed files with 5 additions and 3 deletions

View File

@ -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"

View File

@ -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