Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Candidates class getByElection() method not does not allow for stageId parameter #18

Open
highplainsjames opened this issue May 8, 2018 · 1 comment

Comments

@highplainsjames
Copy link

highplainsjames commented May 8, 2018

Based on the documentation for votesmart the Candidates.getByElection() method provides for a stageId parameter value that filters results based on the election stage:

Candidates.getByElection()
This method grabs a list of candidates according to the election they are running in.

Input: electionId*, stageId

However, the current python candidates class method getByElection() does not provide for a stageId parameter to be passed in as an argument:

https://github.com/votesmart/python-votesmart/blob/master/votesmart.py#L301

Instead it only provides for the electionId. So, presently there is no way to filter candidate values by election stage.

@highplainsjames
Copy link
Author

I've provided a PR for this issue:

#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant