apply black to the whole codebase.
This commit is contained in:
parent
420df3340d
commit
82e2c6efac
1 changed files with 175 additions and 448 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue