From d61d420909a66cc4881bd0c73c87c77e56a08c47 Mon Sep 17 00:00:00 2001 From: CrossJoy Date: Mon, 26 Sep 2022 11:19:43 +0000 Subject: [PATCH] [ci] auto-format --- plugins/utilities/easy_connect.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/utilities/easy_connect.py b/plugins/utilities/easy_connect.py index ce566d0..8f5eb24 100644 --- a/plugins/utilities/easy_connect.py +++ b/plugins/utilities/easy_connect.py @@ -330,7 +330,7 @@ def update(self, index: int, party: PartyEntry, sub_scroll_width: float, url = party.stats_addr.replace( '${ACCOUNT}', ba_internal.get_v1_account_misc_read_val_2('resolvedAccountID', - 'UNKNOWN')) + 'UNKNOWN')) self._stats_button = ba.buttonwidget( color=(0.5, 0.8, 0.8), textcolor=(1.0, 1.0, 1.0), @@ -433,7 +433,7 @@ def popup_menu_selected_choice(self, window: popup.PopupMenu, url = _party.stats_addr.replace( '${ACCOUNT}', ba_internal.get_v1_account_misc_read_val_2('resolvedAccountID', - 'UNKNOWN')) + 'UNKNOWN')) ba.open_url(url) elif choice == 'connect': @@ -457,6 +457,7 @@ def popup_menu_selected_choice(self, window: popup.PopupMenu, ba.clipboard_set_text(_party.queue) ba.playsound(ba.getsound('gunCocking')) + def is_game_version_lower_than(version): """ Returns a boolean value indicating whether the current game @@ -467,6 +468,7 @@ def is_game_version_lower_than(version): version = tuple(map(int, version.split("."))) return game_version < version + def replace(): global ba_internal if is_game_version_lower_than("1.7.7"):