From 299bd6c687dd1648f3287aba924a4f71e02f875e Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Tue, 21 Nov 2023 13:54:59 +0800 Subject: [PATCH] refactor(sweep): change parameter order --- tasks/bounty/ui.py | 2 +- tasks/stage/list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/bounty/ui.py b/tasks/bounty/ui.py index afa0a40..54b3330 100644 --- a/tasks/bounty/ui.py +++ b/tasks/bounty/ui.py @@ -22,7 +22,7 @@ class BountyUI(UI): return False def enter_stage(self, index: int) -> bool: - if BOUNTY_LIST.select_index_enter(index, self): + if BOUNTY_LIST.select_index_enter(self, index): return True return False diff --git a/tasks/stage/list.py b/tasks/stage/list.py index bbfe92e..d84835d 100644 --- a/tasks/stage/list.py +++ b/tasks/stage/list.py @@ -148,8 +148,8 @@ class StageList: def select_index_enter( self, - index: int, main: ModuleBase, + index: int, insight: bool = True, sweepable: bool = True, offset: tuple[int, int] = (-20, -15),