Fix EMPTY_INPUT object being overwritten

This commit is contained in:
Kai Vogelgesang 2022-10-28 16:53:08 +02:00
parent b18d1abe0c
commit 3309674354

View File

@ -184,7 +184,7 @@ async def _(get_input: InputGetter, set_output: OutputSetter):
max_votes = votes max_votes = votes
max_choice = choice max_choice = choice
output = EMPTY_INPUT output = {button: False for button in Button}
if max_choice != "none": if max_choice != "none":
output[max_choice] = True output[max_choice] = True