Skip to content

Commit

Permalink
[Tournaments] No participant check-in if check-in phase is "manual"
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyleff2049 authored and laggron42 committed Jun 26, 2021
1 parent cd27442 commit 9dd727b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tournaments/objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,8 +2317,8 @@ async def register_participant(self, member: discord.Member, send_dm: bool = Tru
raise RuntimeError("Limit reached.")
await member.add_roles(self.participant_role, reason=_("Registering to tournament."))
participant = self.participant_object(member, self)
if self.checkin_phase != "pending":
# registering during check-in, count as already checked
if self.checkin_phase == "ongoing" or "done":
# registering during or after check-in, count as already checked
participant.checked_in = True
if not (self.ranking["league_name"] and self.ranking["league_id"]) or (
self.participants and self.participants[-1].player_id is not None
Expand Down
2 changes: 1 addition & 1 deletion tournaments/tournaments.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(self, bot: Red):
except Exception as e:
log.error("Couldn't load dev env values.", exc_info=e)

__version__ = "1.1.10"
__version__ = "1.1.11"
__author__ = ["retke (El Laggron)", "Wonderfall", "Xyleff"]

@commands.command(hidden=True)
Expand Down

0 comments on commit 9dd727b

Please sign in to comment.