Closed jwinzer closed 6 years ago
@jwinzer Can you move the keypad update code out of the validation, thanks! The rest looks good, I'll merge, if the code has been moved.
@FinnStutzenstein Strictly speaking it's more than validation. However, I wanted to avoid looping yet another time thru the votes.
@jwinzer I added one commit. If it's ok, I'll rebase and merge.
@FinnStutzenstein Here is another issue. We're violating the DRY principle here and should move this to a separate method: SubmitVotes SubmitCandidates
@jwinzer If you want, you can clean this up. But we should first merge this one.
Ok, go ahead and merge. I won't have time to work on the plugin until later this week.
@FinnStutzenstein WAIT! You need to call update_keypads_from_votes at the end of SubmitKeypads. That's the whole purpose of that method!
@jwinzer Jep, I didn't saw the last validate_input_data
.