3
2
forked from Dniel97/artemis

allnet: see previous

This commit is contained in:
Hay1tsme 2023-03-03 15:52:58 -05:00
parent b35e7d6983
commit 34e2c50fb5

View File

@ -138,7 +138,11 @@ class AllnetServlet:
if machine is not None:
arcade = self.data.arcade.get_arcade(machine["arcade"])
resp.country = arcade["country"] if machine["country"] is None else machine["country"] if machine["country"] is not None else AllnetCountryCode.JAPAN.value
country = arcade["country"] if machine["country"] is None else machine["country"]
if country is None:
country = AllnetCountryCode.JAPAN.value
resp.country = country
resp.place_id = arcade["id"]
resp.allnet_id = machine["id"]
resp.name = arcade["name"] if arcade["name"] is not None else ""