From 6d4f5e12e8d1b7a5074441ae3eef7e9fd00d5953 Mon Sep 17 00:00:00 2001 From: un1xx Date: Tue, 3 Sep 2024 23:11:25 +0530 Subject: [PATCH] fix logical error in rss --- exts/banking.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exts/banking.py b/exts/banking.py index 3b69588..59430ea 100644 --- a/exts/banking.py +++ b/exts/banking.py @@ -353,12 +353,14 @@ class Banking(commands.Cog): ) @commands.has_role(987770837627187250) @commands.command() - async def rss(self, ctx: CustomCtx, ids: commands.Greedy[int] = [], *, nation_names: str|None =None): + async def rss(self, ctx: CustomCtx, ids: commands.Greedy[int] = None, *, nation_names: str|None =None): """get resources of a nation in alliance Args: ids (commands.Greedy[int]): ids of nations """ + if ids is None: + ids = [] d_kit = pnwkit.QueryKit( api_key=os.getenv("pnwDILFKEY"), bot_key=os.getenv("pnwBOTKEY"),