'.values()' -> '.items()'
This commit is contained in:
parent
0960740aca
commit
dd94f3a918
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
cast_type = VoteCastResult.Cast
|
||||
|
||||
for option, nicks in vote["options"].values():
|
||||
for option, nicks in vote["options"].items():
|
||||
if user.name in nicks:
|
||||
if option == chosen_option:
|
||||
return VoteCastResult.Unchanged
|
||||
|
|
Loading…
Reference in a new issue