Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions passport/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_input(pool):
# Redirect sys.stdin to an open filehandle from which input()
# is able to read
sys.stdin = open("/dev/tty")
selection = input("» Select an [ID] or enter «(q)uit» to exit: ")
selection = input("» Select an ([ID]) or enter «(q)uit» to exit: ")

try:
selection = int(selection)
Expand Down Expand Up @@ -57,10 +57,11 @@ def print_choice(choice):
for key, value in choice.items():
if value.get("flag") == "global":
msg = """
~:Global passport:
~:Global passport ({}):
. User: {}
. E-Mail: {}
""".format(
key,
value["name"],
value["email"]
)
Expand All @@ -69,10 +70,12 @@ def print_choice(choice):

if value.get("service"):
msg = """
~Passport: {}
~Passport: ({})
. Service: {}
. User: {}
. E-Mail: {}
""".format(
key,
value["service"],
value["name"],
value["email"]
Expand Down