fix formatting
This commit is contained in:
parent
802f67cf54
commit
8217dc6f01
@ -76,7 +76,9 @@ class Database:
|
|||||||
self.path = Path(path)
|
self.path = Path(path)
|
||||||
self.ensure_tables()
|
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
|
# we let the database serialize all writers at connection time
|
||||||
# to play it very safe (we don't have massive amounts of writes).
|
# to play it very safe (we don't have massive amounts of writes).
|
||||||
mode = "ro"
|
mode = "ro"
|
||||||
|
@ -9,8 +9,8 @@ def get_user_data(db, user):
|
|||||||
with db.read_connection() as conn:
|
with db.read_connection() as conn:
|
||||||
result = conn.get_user(user)
|
result = conn.get_user(user)
|
||||||
if result:
|
if result:
|
||||||
result['uid'] = "vmail"
|
result["uid"] = "vmail"
|
||||||
result['gid'] = "vmail"
|
result["gid"] = "vmail"
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user