{"action":"closed","issue":{"url":"https://api.github.com/repos/newsdev/elex/issues/220","repository_url":"https://api.github.com/repos/newsdev/elex","labels_url":"https://api.github.com/repos/newsdev/elex/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/newsdev/elex/issues/220/comments","events_url":"https://api.github.com/repos/newsdev/elex/issues/220/events","html_url":"https://github.com/newsdev/elex/issues/220","id":131767538,"number":220,"title":"New England roll-up makes all candidate vote counts the same within a county","user":{"login":"giratikanon","id":333527,"avatar_url":"https://avatars.githubusercontent.com/u/333527?v=3","gravatar_id":"","url":"https://api.github.com/users/giratikanon","html_url":"https://github.com/giratikanon","followers_url":"https://api.github.com/users/giratikanon/followers","following_url":"https://api.github.com/users/giratikanon/following{/other_user}","gists_url":"https://api.github.com/users/giratikanon/gists{/gist_id}","starred_url":"https://api.github.com/users/giratikanon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giratikanon/subscriptions","organizations_url":"https://api.github.com/users/giratikanon/orgs","repos_url":"https://api.github.com/users/giratikanon/repos","events_url":"https://api.github.com/users/giratikanon/events{/privacy}","received_events_url":"https://api.github.com/users/giratikanon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-05T21:55:53Z","updated_at":"2016-02-06T15:49:00Z","closed_at":"2016-02-06T15:49:00Z","body":"When we roll up New England towns into counties, Elex accidentally assigns the same vote count to all candidates in a county. Here's a screenshot of a CSV after running `elex results 2016-02-09` with data from an AP test:\r\n \r\n![image](https://cloud.githubusercontent.com/assets/333527/12860107/745993fe-cc28-11e5-8735-698fd69f1121.png)\r\n\r\nIn [set_candidates](https://github.com/newsdev/elex/blob/master/elex/api/models.py#L80-L81), Elex copies metadata from the reporting unit to the candidate. When we create roll-up counties, I think the vote count is also getting copied.\r\n\r\nWhen I change my local code to not copy `votecount`: \r\n\r\n```python\r\nfor k, v in self.__dict__.items():\r\n    if k != \"votecount\":\r\n        candidate_dict[k] = v\r\n```\r\n\r\nI get accurate vote counts: \r\n\r\n![image](https://cloud.githubusercontent.com/assets/333527/12860172/f3309038-cc28-11e5-9441-37c10b721094.png)"}}