Skip to content

Commit

Permalink
Set state to TESTING if changed from WAITING
Browse files Browse the repository at this point in the history
  • Loading branch information
murpii authored Feb 9, 2024
1 parent 2d2945c commit 824c164
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cogs/map_testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ async def handle_submission(self, message: discord.Message):
# set bot as initial ready so the map only needs one ready to be moved to evaluated maps again
initial_ready = self.bot.user.mention
if by_mapper and map_channel.state in (MapState.WAITING, MapState.READY):
await map_channel.set_state(state=MapState.RC, ready_state_set_by=initial_ready)
if map_channel.state == MapState.WAITING:
await map_channel.set_state(state=MapState.TESTING)
elif map_channel.state == MapState.READY:
await map_channel.set_state(state=MapState.RC, ready_state_set_by=initial_ready)

if by_mapper or is_staff(author) or author == self.bot.user:
await self.upload_submission(subm)
Expand Down

0 comments on commit 824c164

Please sign in to comment.