Switch variables_to_prompt to a set

This commit is contained in:
Ceda EI 2024-04-08 00:10:51 +05:30
parent a4ec924437
commit f87b7661ee
1 changed files with 4 additions and 4 deletions

View File

@ -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: