diff --git a/server/server.py b/server/server.py index 26a3c3d..af12b36 100644 --- a/server/server.py +++ b/server/server.py @@ -44,9 +44,13 @@ def __init__(self, id: str, name: str, status: status = None, members: list[str] self.members = members def toJson(obj): - return json.dumps(obj, default=lambda o: dict((key, value) for key, value in o.__dict__.items() if value), - indent=4, - allow_nan=False) + return json.dumps( + obj, default=lambda o: dict( + (key, value) for key, value in o.__dict__.items() if value + ), + indent=4, + allow_nan=False, + ) # payload: { # # The user ID can be any identifier that makes sense to your application.