From cb6e88758df51c21d33befe0193f651e9889a750 Mon Sep 17 00:00:00 2001 From: karan Date: Sun, 1 Jun 2025 19:12:47 +0530 Subject: [PATCH] changes --- exts/banking.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/exts/banking.py b/exts/banking.py index 2c09a92..918d07b 100644 --- a/exts/banking.py +++ b/exts/banking.py @@ -970,21 +970,19 @@ class Banking(commands.Cog): "nation_id": nation.id, "nation_name": nation.nation_name, "revenue": revenue, + "nation_coal": nation.coal, + "nation_oil": nation.oil, + "nation_iron": nation.iron, + "nation_bauxite": nation.bauxite, + "nation_lead": nation.lead, } ) - nation_rss = { - "nation_coal": nation.coal, - "nation_oil": nation.oil, - "nation_iron": nation.iron, - "nation_bauxite": nation.bauxite, - "nation_lead": nation.lead - } except Exception as e: await ctx.cbsend(f"{traceback.format_exc()}") # Format and send the results - await self.send_revenue_results(ctx, revenue_data, nation_rss) + await self.send_revenue_results(ctx, revenue_data) except Exception as e: await ctx.send(f"> Error getting game data: {str(e)}") @@ -1336,7 +1334,7 @@ class Banking(commands.Cog): ) e.add_field(name="Net raws production", value=revenue["net_rev_txt"], inline=False) - e.add_field(name="On Nation", value=f"Coal: {nation_rss[nation_coal]}\nIron: {nation_rss[nation_iron]}\nTBC", inline=False) + e.add_field(name="On Nation", value=f"Coal: {data[nation_coal]}\nIron: {data[nation_iron]}\nTBC", inline=False) if revenue["footer"]: