Skip to content

Commit

Permalink
Return command result for remove_map_from_rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
cemathey committed May 21, 2024
1 parent 772f077 commit 2086c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcon/rcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def add_map_to_rotation(

def remove_map_from_rotation(self, map_name: str, map_number: int | None = None):
with invalidates(Rcon.get_map_rotation, Rcon.get_next_map):
super().remove_map_from_rotation(map_name, map_number)
return super().remove_map_from_rotation(map_name, map_number)

def remove_maps_from_rotation(self, map_names: list[str]) -> Literal["SUCCESS"]:
with invalidates(Rcon.get_map_rotation, Rcon.get_next_map):
Expand Down

0 comments on commit 2086c60

Please sign in to comment.