'.values()' -> '.items()'

This commit is contained in:
jesopo 2019-10-10 17:16:00 +01:00
parent 0960740aca
commit dd94f3a918

View file

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