diff --git a/exts/war_monitor.py b/exts/war_monitor.py index 8b68aa9..7e7ea94 100644 --- a/exts/war_monitor.py +++ b/exts/war_monitor.py @@ -91,13 +91,13 @@ class WarMonitor(commands.Cog): if war.att_alliance_id: # in MONITORED_ALLIANCES: attacker = await self.kit.query( - "nation", + "nations", {"id": war.att_id, "first": 1}, "nation_name, flag, num_cities, soldiers, tanks, aircraft, ships, missiles, score, nukes" ) attacker = attacker.nations[0] defender = await self.kit.query( - "nation", + "nations", {"id": war.def_id, "first": 1}, "nation_name, flag, num_cities, soldiers, tanks, aircraft, ships, missiles, score, nukes" ) @@ -113,13 +113,13 @@ class WarMonitor(commands.Cog): if war.def_alliance_id: #in MONITORED_ALLIANCES: attacker = await self.kit.query( - "nation", + "nations", {"id": war.att_id, "first": 1}, "nation_name, flag, num_cities, soldiers, tanks, aircraft, ships, missiles, score, nukes" ) attacker = attacker.nations[0] defender = await self.kit.query( - "nation", + "nations", {"id": war.def_id, "first": 1}, "nation_name, flag, num_cities, soldiers, tanks, aircraft, ships, missiles, score, nukes" )