mucha: small cleanup with a oneliner
This commit is contained in:
parent
a7a830c6b7
commit
ff6ef16b89
@ -57,10 +57,7 @@ class MuchaServlet:
|
|||||||
|
|
||||||
# TODO: Figure out why the S/N is the way it is.
|
# TODO: Figure out why the S/N is the way it is.
|
||||||
|
|
||||||
if self.config.server.is_develop:
|
resp = MuchaAuthResponse(f"{self.config.mucha.hostname}{':' + self.config.mucha.port if self.config.server.is_develop else ''}")
|
||||||
resp = MuchaAuthResponse(mucha_url=f"{self.config.mucha.hostname}:{self.config.mucha.port}")
|
|
||||||
else:
|
|
||||||
resp = MuchaAuthResponse(mucha_url=f"{self.config.mucha.hostname}")
|
|
||||||
|
|
||||||
self.logger.debug(f"Mucha response {vars(resp)}")
|
self.logger.debug(f"Mucha response {vars(resp)}")
|
||||||
|
|
||||||
@ -80,10 +77,7 @@ class MuchaServlet:
|
|||||||
self.logger.warn(f"Unknown gameCd {req.gameCd}")
|
self.logger.warn(f"Unknown gameCd {req.gameCd}")
|
||||||
return b""
|
return b""
|
||||||
|
|
||||||
if self.config.server.is_develop:
|
resp = MuchaUpdateResponse(req.gameVer, f"{self.config.mucha.hostname}{':' + self.config.mucha.port if self.config.server.is_develop else ''}")
|
||||||
resp = MuchaUpdateResponse(req.gameVer, f"{self.config.mucha.hostname}:{self.config.mucha.port}")
|
|
||||||
else:
|
|
||||||
resp = MuchaUpdateResponse(req.gameVer, f"{self.config.mucha.hostname}")
|
|
||||||
|
|
||||||
self.logger.debug(f"Mucha response {vars(resp)}")
|
self.logger.debug(f"Mucha response {vars(resp)}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user