apply black to the whole codebase.

This commit is contained in:
Goffi 2026-03-09 09:22:04 +01:00
commit 82e2c6efac

View file

@ -153,7 +153,7 @@ class RoomGame(object):
self._update_players(room_jid, nicks, True, profile)
else:
self._init_game(room_jid, nick)
(auth, waiting, missing) = self._check_wait_auth(room_jid, other_players)
auth, waiting, missing = self._check_wait_auth(room_jid, other_players)
nicks.extend(waiting)
nicks.extend(self._invite_players(room_jid, missing, nick, profile))
if auth:
@ -426,7 +426,7 @@ class RoomGame(object):
result = (False, [], other_players)
else:
# TODO: find a way to make it secure
(nicks, missing) = self.host.plugins["XEP-0045"].getRoomNicksOfUsers(
nicks, missing = self.host.plugins["XEP-0045"].getRoomNicksOfUsers(
room, other_players, secure=False
)
result = (len(nicks) == len(other_players), nicks, missing)
@ -524,7 +524,7 @@ class RoomGame(object):
)
return True
other_players = self.invitations[room_jid][batch][1]
(auth, nicks, __) = self._check_wait_auth(room, other_players)
auth, nicks, __ = self._check_wait_auth(room, other_players)
if auth:
del self.invitations[room_jid][batch]
nicks.insert(0, profile_nick) # add the referee
@ -618,7 +618,7 @@ class RoomGame(object):
if not profile:
log.error(_("profile %s is unknown") % profile_key)
return
(create, sync) = self._check_create_game_and_init(room_jid, profile)
create, sync = self._check_create_game_and_init(room_jid, profile)
if nicks is None:
nicks = []
if not create: