From cebc29b997f606b28fd5532338b0d3ede5eb3f52 Mon Sep 17 00:00:00 2001 From: gsd Date: Fri, 3 Mar 2023 21:52:19 +0300 Subject: [PATCH] 200 -> 201 --- player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.py b/player.py index a651410..cb089cf 100644 --- a/player.py +++ b/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