Skip to content

Commit d8e2684

Browse files
author
tryiou
committed
refactor: initialize repo details within XBridgeBotManager constructor
1 parent 91efd25 commit d8e2684

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

gui/xbridge_bot_manager.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111

1212
class XBridgeBotManager:
13-
def __init__(self, repo_url: str = "https://github.com/tryiou/xbridge_trading_bots", current_branch: str = "main"):
14-
15-
self.repo_url = repo_url
13+
def __init__(self, current_branch: str = "main"):
14+
self.author = "tryiou"
15+
self.repo_name = "xbridge_trading_bots"
16+
self.repo_url = "https://github.com/" + self.author + "/" + self.repo_name
1617
self.target_dir = os.path.join(aio_folder, "xbridge_trading_bots")
1718
self.started = False
1819
self.current_branch = current_branch

0 commit comments

Comments
 (0)