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("[green]✅ Initialized Modules")
|
||||||
console.print("")
|
console.print("")
|
||||||
|
|
||||||
variables_to_prompt = []
|
variables_to_prompt = set()
|
||||||
for module in modules.values():
|
for module in modules.values():
|
||||||
variables_to_prompt += module.template_variables()[
|
variables_to_prompt.update(
|
||||||
"login" if login else "logout"
|
module.template_variables()["login" if login else "logout"]
|
||||||
]
|
)
|
||||||
|
|
||||||
responses = {}
|
responses = {}
|
||||||
for var in variables_to_prompt:
|
for var in variables_to_prompt:
|
||||||
|
|
Loading…
Reference in New Issue