Skip to content

Commit c0a7eca

Browse files
author
shrey
committed
minor changes
1 parent ee88875 commit c0a7eca

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

datashuttle/tui/shared/configs_content.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,18 @@ def setup_widgets_to_display(self, connection_method: str | None) -> None:
806806
else:
807807
widget_func(False)
808808

809+
has_connection_method = connection_method is not None
810+
809811
# Central path input
810812
self.query_one("#configs_central_path_input").disabled = (
811-
connection_method is None
813+
not has_connection_method
812814
)
813815
self.query_one("#configs_central_path_select_button").disabled = (
814-
connection_method is None
816+
not has_connection_method
815817
)
816818

817819
# Local only project
818-
if not connection_method:
820+
if not has_connection_method:
819821
self.query_one("#configs_central_path_input").value = ""
820822

821823
setup_connection_button = self.query_one(

datashuttle/utils/gdrive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ def ask_user_for_browser(log: bool = True) -> bool:
8383
utils.print_message_to_user("Invalid input. Press either 'y' or 'n'.")
8484
input_ = utils.get_user_input(message).lower()
8585

86-
if input_ == "y":
87-
answer = True
88-
else:
89-
answer = False
86+
answer = input_ == "y"
9087

9188
if log:
9289
utils.log(message)

0 commit comments

Comments
 (0)