Update banking.py
This commit is contained in:
1 parent
e355764fba
commit
369485f0da
1 file changed
+11
-10
+11
-10
@@ -427,24 +427,25 @@ class Banking(commands.Cog):
|
||||
for nation in result.nations:
|
||||
ids.append(nation.id)
|
||||
if not ids:
|
||||
ids = self.WARCHEST_IDS
|
||||
nations = []
|
||||
if 103764 in ids:
|
||||
ids.remove(103764)
|
||||
kit = self.dkit
|
||||
result = await kit.query(
|
||||
result = await self.dkit.query(
|
||||
"nations",
|
||||
{"id": 103764, "first": 1},
|
||||
{"alliance_id": 10198},
|
||||
"id, nation_name,leader_name, discord,money, flag, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel, num_cities, credits",
|
||||
)
|
||||
nations.extend(result.nations)
|
||||
kit = self.kit
|
||||
result = await kit.query(
|
||||
result = await self.kit.query(
|
||||
"nations",
|
||||
{"alliance_id": 10177},
|
||||
"id, nation_name,leader_name, discord,money, flag, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel, num_cities, credits",
|
||||
)
|
||||
nations.extend(result.nations)
|
||||
else:
|
||||
result = await self.dkit.query(
|
||||
"nations",
|
||||
{"id": ids},
|
||||
"id, nation_name,leader_name, discord,money, flag, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel, num_cities, credits",
|
||||
)
|
||||
nations.extend(result.nations)
|
||||
nations.extend(result.nations)
|
||||
for nation in nations:
|
||||
e = discord.Embed(
|
||||
title=f"Resources for {nation.nation_name} c({nation.num_cities})",
|
||||
|
||||
Reference in new issue
Block a user