Switch variables_to_prompt to a set
This commit is contained in:
parent
a4ec924437
commit
f87b7661ee
|
@ -42,11 +42,11 @@ def _login_out(ctx: click.Context, login: bool):
|
|||
console.print("[green]✅ Initialized Modules")
|
||||
console.print("")
|
||||
|
||||
variables_to_prompt = []
|
||||
variables_to_prompt = set()
|
||||
for module in modules.values():
|
||||
variables_to_prompt += module.template_variables()[
|
||||
"login" if login else "logout"
|
||||
]
|
||||
variables_to_prompt.update(
|
||||
module.template_variables()["login" if login else "logout"]
|
||||
)
|
||||
|
||||
responses = {}
|
||||
for var in variables_to_prompt:
|
||||
|
|
Loading…
Reference in New Issue