3
2
forked from Dniel97/artemis

mucha: fix handlers

This commit is contained in:
Hay1tsme 2024-01-22 14:59:53 -05:00
parent 5c9570d421
commit 029be55cc0

View File

@ -47,7 +47,7 @@ class MuchaServlet:
self.logger.info(f"Serving {len(self.mucha_registry)} games")
def handle_boardauth(self, request: Request, _: Dict) -> bytes:
def handle_boardauth(self, request: Request) -> bytes:
req_dict = self.mucha_preprocess(request.content.getvalue())
client_ip = Utils.get_ip_addr(request)
@ -82,7 +82,7 @@ class MuchaServlet:
return self.mucha_postprocess(vars(resp))
def handle_updatecheck(self, request: Request, _: Dict) -> bytes:
def handle_updatecheck(self, request: Request) -> bytes:
req_dict = self.mucha_preprocess(request.content.getvalue())
client_ip = Utils.get_ip_addr(request)
@ -106,7 +106,7 @@ class MuchaServlet:
return self.mucha_postprocess(vars(resp))
def handle_dlstate(self, request: Request, _: Dict) -> bytes:
def handle_dlstate(self, request: Request) -> bytes:
req_dict = self.mucha_preprocess(request.content.getvalue())
client_ip = Utils.get_ip_addr(request)