Remove port parameter

This commit is contained in:
Eden Kirin
2023-04-21 17:56:35 +02:00
parent fd71fa276c
commit 270f742c95
4 changed files with 10 additions and 14 deletions

View File

@ -70,12 +70,11 @@ class GameInfoResponse(BaseModel):
class FairHopper:
def __init__(self, host, port) -> None:
def __init__(self, host: str) -> None:
self.host = host
self.port = port
def format_url(self, path: str) -> str:
return f"{self.host}:{self.port}{path}"
return f"{self.host}{path}"
def ping(self) -> PingResponse:
r = requests.get(self.format_url("/ping"))