Browse Source

200 -> 201

huy
gsd 2 years ago
parent
commit
cebc29b997
  1. 2
      player.py

2
player.py

@ -191,7 +191,7 @@ class Player:
"steam64": self.requester_steam64}) as session:
async with session.post(f"{os.getenv('BACKEND_URL')}/api/admin/ban?steam64={self.steam64}&ban_reason={reason}&ban_length={minutes}", ssl=False) as response:
await response.text()
if response.status == 200:
if response.status == 201:
return "Игрок забанен или уже был в бане"
if response.status == 404:
raise NotFoundPlayerOnServer

Loading…
Cancel
Save