Skip to content

Commit

Permalink
[Tournaments] Direct check-in condition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyleff2049 committed Jul 2, 2021
1 parent 9dd727b commit e3f8436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tournaments/objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ 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 == "ongoing" or "done":
if self.checkin_phase == "ongoing" or self.checkin_phase == "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 (
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.11"
__version__ = "1.1.12"
__author__ = ["retke (El Laggron)", "Wonderfall", "Xyleff"]

@commands.command(hidden=True)
Expand Down

0 comments on commit e3f8436

Please sign in to comment.