electiondata
electiondata copied to clipboard
Remove redundant switching between Name and ID
The analyzer code uses text/labels selected by the user as arguments to various functions. In some cases, we change these to IDs and then change them back to text for use in various queries, filtering, etc.
Some of the changing in one direction is ok - for example, changing once from a text label to an ID is fine and it could potentially be another layer of protection against SQL injection. However, there are some instances of this that is superfluous, where we change to an ID, pass the ID to a function, and in that second function, change that ID back to the text label for usage. Fix these superfluous instances.