{"action":"created","comment":{"url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/comments/80994839","pull_request_review_id":2005647,"id":80994839,"diff_hunk":"@@ -0,0 +1,158 @@\n+package IFComp::Controller::Admin::Voting;\n+use Moose;\n+use namespace::autoclean;\n+use Data::Dumper;\n+use JSON;\n+\n+BEGIN { extends 'Catalyst::Controller'; }\n+\n+=head1 NAME\n+\n+IFComp::Controller::Admin::Voting\n+\n+=head1 DESCRIPTION\n+\n+A controller for voting reports.\n+\n+=head1 METHODS\n+\n+=cut\n+\n+\n+=head2 index\n+\n+=cut\n+\n+sub index :Path :Args(0) {\n+    my ( $self, $c ) = @_;\n+\n+    my $comp  = $c->model('IFCompDB::Comp');\n+    my $entry = $c->model('IFCompDB::Entry');\n+    my $vote  = $c->model('IFCompDB::Vote');\n+    my $user  = $c->model('IFCompDB::User');\n+\n+    my $current_comp;\n+    if (my $id = $c->req->param(\"comp_id\")) {\n+        $current_comp = $comp->find($id);\n+    } else {\n+        $current_comp = $comp->current_comp;\n+    }\n+\n+    $c->stash->{ current_comp } = $current_comp;\n+    my @available_comps = $comp->search({\n+                                         year => {'>=' => 2014},\n+                                        },\n+                                        { order_by => 'year'}\n+                                       )->all;\n+\n+    $c->stash->{ available_comps } = \\@available_comps;\n+\n+    # Get all entries for this comp\n+    my @all_entries = $entry->search({comp => $current_comp->id,","path":"IFComp/lib/IFComp/Controller/Admin/Voting.pm","position":51,"original_position":51,"commit_id":"8b74b0ea36a25e98dbfa68c89b964ac42027e58d","original_commit_id":"8b74b0ea36a25e98dbfa68c89b964ac42027e58d","user":{"login":"jmacdotorg","id":621995,"avatar_url":"https://avatars.githubusercontent.com/u/621995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdotorg","html_url":"https://github.com/jmacdotorg","followers_url":"https://api.github.com/users/jmacdotorg/followers","following_url":"https://api.github.com/users/jmacdotorg/following{/other_user}","gists_url":"https://api.github.com/users/jmacdotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdotorg/subscriptions","organizations_url":"https://api.github.com/users/jmacdotorg/orgs","repos_url":"https://api.github.com/users/jmacdotorg/repos","events_url":"https://api.github.com/users/jmacdotorg/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdotorg/received_events","type":"User","site_admin":false},"body":"Instead of checking is_disqualified, please just grab all entries and then grep them through `$_->is_qualified`, which checks other qualification facets as well. (e.g. `my @qualified_entries = grep { $_->is_qualified } @all_entries`","created_at":"2016-09-28T19:09:40Z","updated_at":"2016-09-28T19:22:21Z","html_url":"https://github.com/jmacdotorg/ifcomp/pull/62#discussion_r80994839","pull_request_url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/comments/80994839"},"html":{"href":"https://github.com/jmacdotorg/ifcomp/pull/62#discussion_r80994839"},"pull_request":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62","id":84795743,"html_url":"https://github.com/jmacdotorg/ifcomp/pull/62","diff_url":"https://github.com/jmacdotorg/ifcomp/pull/62.diff","patch_url":"https://github.com/jmacdotorg/ifcomp/pull/62.patch","issue_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/62","number":62,"state":"open","locked":false,"title":"Ballot report","user":{"login":"taskboy3000","id":272609,"avatar_url":"https://avatars.githubusercontent.com/u/272609?v=3","gravatar_id":"","url":"https://api.github.com/users/taskboy3000","html_url":"https://github.com/taskboy3000","followers_url":"https://api.github.com/users/taskboy3000/followers","following_url":"https://api.github.com/users/taskboy3000/following{/other_user}","gists_url":"https://api.github.com/users/taskboy3000/gists{/gist_id}","starred_url":"https://api.github.com/users/taskboy3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskboy3000/subscriptions","organizations_url":"https://api.github.com/users/taskboy3000/orgs","repos_url":"https://api.github.com/users/taskboy3000/repos","events_url":"https://api.github.com/users/taskboy3000/events{/privacy}","received_events_url":"https://api.github.com/users/taskboy3000/received_events","type":"User","site_admin":false},"body":"Ballot report:\r\n\r\n- New Admin section (needs to be secured and linked to the main app somehow)\r\n- New Voting section that contains the Ballot Reports\r\n- Ballot activity shown for Entries, Users and IP","created_at":"2016-09-11T19:40:03Z","updated_at":"2016-09-28T19:22:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62/commits","review_comments_url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62/comments","review_comment_url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/62/comments","statuses_url":"https://api.github.com/repos/jmacdotorg/ifcomp/statuses/8b74b0ea36a25e98dbfa68c89b964ac42027e58d","head":{"label":"jmacdotorg:ballot_report","ref":"ballot_report","sha":"8b74b0ea36a25e98dbfa68c89b964ac42027e58d","user":{"login":"jmacdotorg","id":621995,"avatar_url":"https://avatars.githubusercontent.com/u/621995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdotorg","html_url":"https://github.com/jmacdotorg","followers_url":"https://api.github.com/users/jmacdotorg/followers","following_url":"https://api.github.com/users/jmacdotorg/following{/other_user}","gists_url":"https://api.github.com/users/jmacdotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdotorg/subscriptions","organizations_url":"https://api.github.com/users/jmacdotorg/orgs","repos_url":"https://api.github.com/users/jmacdotorg/repos","events_url":"https://api.github.com/users/jmacdotorg/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdotorg/received_events","type":"User","site_admin":false},"repo":{"id":15856024,"name":"ifcomp","full_name":"jmacdotorg/ifcomp","owner":{"login":"jmacdotorg","id":621995,"avatar_url":"https://avatars.githubusercontent.com/u/621995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdotorg","html_url":"https://github.com/jmacdotorg","followers_url":"https://api.github.com/users/jmacdotorg/followers","following_url":"https://api.github.com/users/jmacdotorg/following{/other_user}","gists_url":"https://api.github.com/users/jmacdotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdotorg/subscriptions","organizations_url":"https://api.github.com/users/jmacdotorg/orgs","repos_url":"https://api.github.com/users/jmacdotorg/repos","events_url":"https://api.github.com/users/jmacdotorg/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdotorg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmacdotorg/ifcomp","description":"The software behind the Interactive Fiction Competition.","fork":false,"url":"https://api.github.com/repos/jmacdotorg/ifcomp","forks_url":"https://api.github.com/repos/jmacdotorg/ifcomp/forks","keys_url":"https://api.github.com/repos/jmacdotorg/ifcomp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmacdotorg/ifcomp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmacdotorg/ifcomp/teams","hooks_url":"https://api.github.com/repos/jmacdotorg/ifcomp/hooks","issue_events_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/events{/number}","events_url":"https://api.github.com/repos/jmacdotorg/ifcomp/events","assignees_url":"https://api.github.com/repos/jmacdotorg/ifcomp/assignees{/user}","branches_url":"https://api.github.com/repos/jmacdotorg/ifcomp/branches{/branch}","tags_url":"https://api.github.com/repos/jmacdotorg/ifcomp/tags","blobs_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmacdotorg/ifcomp/statuses/{sha}","languages_url":"https://api.github.com/repos/jmacdotorg/ifcomp/languages","stargazers_url":"https://api.github.com/repos/jmacdotorg/ifcomp/stargazers","contributors_url":"https://api.github.com/repos/jmacdotorg/ifcomp/contributors","subscribers_url":"https://api.github.com/repos/jmacdotorg/ifcomp/subscribers","subscription_url":"https://api.github.com/repos/jmacdotorg/ifcomp/subscription","commits_url":"https://api.github.com/repos/jmacdotorg/ifcomp/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmacdotorg/ifcomp/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmacdotorg/ifcomp/contents/{+path}","compare_url":"https://api.github.com/repos/jmacdotorg/ifcomp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmacdotorg/ifcomp/merges","archive_url":"https://api.github.com/repos/jmacdotorg/ifcomp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmacdotorg/ifcomp/downloads","issues_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues{/number}","pulls_url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls{/number}","milestones_url":"https://api.github.com/repos/jmacdotorg/ifcomp/milestones{/number}","notifications_url":"https://api.github.com/repos/jmacdotorg/ifcomp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmacdotorg/ifcomp/labels{/name}","releases_url":"https://api.github.com/repos/jmacdotorg/ifcomp/releases{/id}","deployments_url":"https://api.github.com/repos/jmacdotorg/ifcomp/deployments","created_at":"2014-01-13T02:34:37Z","updated_at":"2016-07-29T18:30:24Z","pushed_at":"2016-09-11T19:40:04Z","git_url":"git://github.com/jmacdotorg/ifcomp.git","ssh_url":"git@github.com:jmacdotorg/ifcomp.git","clone_url":"https://github.com/jmacdotorg/ifcomp.git","svn_url":"https://github.com/jmacdotorg/ifcomp","homepage":null,"size":2926,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":5,"default_branch":"master"}},"base":{"label":"jmacdotorg:master","ref":"master","sha":"871564193a384a634d190004d27d349a96d68cd1","user":{"login":"jmacdotorg","id":621995,"avatar_url":"https://avatars.githubusercontent.com/u/621995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdotorg","html_url":"https://github.com/jmacdotorg","followers_url":"https://api.github.com/users/jmacdotorg/followers","following_url":"https://api.github.com/users/jmacdotorg/following{/other_user}","gists_url":"https://api.github.com/users/jmacdotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdotorg/subscriptions","organizations_url":"https://api.github.com/users/jmacdotorg/orgs","repos_url":"https://api.github.com/users/jmacdotorg/repos","events_url":"https://api.github.com/users/jmacdotorg/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdotorg/received_events","type":"User","site_admin":false},"repo":{"id":15856024,"name":"ifcomp","full_name":"jmacdotorg/ifcomp","owner":{"login":"jmacdotorg","id":621995,"avatar_url":"https://avatars.githubusercontent.com/u/621995?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdotorg","html_url":"https://github.com/jmacdotorg","followers_url":"https://api.github.com/users/jmacdotorg/followers","following_url":"https://api.github.com/users/jmacdotorg/following{/other_user}","gists_url":"https://api.github.com/users/jmacdotorg/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdotorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdotorg/subscriptions","organizations_url":"https://api.github.com/users/jmacdotorg/orgs","repos_url":"https://api.github.com/users/jmacdotorg/repos","events_url":"https://api.github.com/users/jmacdotorg/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdotorg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmacdotorg/ifcomp","description":"The software behind the Interactive Fiction Competition.","fork":false,"url":"https://api.github.com/repos/jmacdotorg/ifcomp","forks_url":"https://api.github.com/repos/jmacdotorg/ifcomp/forks","keys_url":"https://api.github.com/repos/jmacdotorg/ifcomp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmacdotorg/ifcomp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmacdotorg/ifcomp/teams","hooks_url":"https://api.github.com/repos/jmacdotorg/ifcomp/hooks","issue_events_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/events{/number}","events_url":"https://api.github.com/repos/jmacdotorg/ifcomp/events","assignees_url":"https://api.github.com/repos/jmacdotorg/ifcomp/assignees{/user}","branches_url":"https://api.github.com/repos/jmacdotorg/ifcomp/branches{/branch}","tags_url":"https://api.github.com/repos/jmacdotorg/ifcomp/tags","blobs_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmacdotorg/ifcomp/statuses/{sha}","languages_url":"https://api.github.com/repos/jmacdotorg/ifcomp/languages","stargazers_url":"https://api.github.com/repos/jmacdotorg/ifcomp/stargazers","contributors_url":"https://api.github.com/repos/jmacdotorg/ifcomp/contributors","subscribers_url":"https://api.github.com/repos/jmacdotorg/ifcomp/subscribers","subscription_url":"https://api.github.com/repos/jmacdotorg/ifcomp/subscription","commits_url":"https://api.github.com/repos/jmacdotorg/ifcomp/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmacdotorg/ifcomp/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmacdotorg/ifcomp/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmacdotorg/ifcomp/contents/{+path}","compare_url":"https://api.github.com/repos/jmacdotorg/ifcomp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmacdotorg/ifcomp/merges","archive_url":"https://api.github.com/repos/jmacdotorg/ifcomp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmacdotorg/ifcomp/downloads","issues_url":"https://api.github.com/repos/jmacdotorg/ifcomp/issues{/number}","pulls_url":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls{/number}","milestones_url":"https://api.github.com/repos/jmacdotorg/ifcomp/milestones{/number}","notifications_url":"https://api.github.com/repos/jmacdotorg/ifcomp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmacdotorg/ifcomp/labels{/name}","releases_url":"https://api.github.com/repos/jmacdotorg/ifcomp/releases{/id}","deployments_url":"https://api.github.com/repos/jmacdotorg/ifcomp/deployments","created_at":"2014-01-13T02:34:37Z","updated_at":"2016-07-29T18:30:24Z","pushed_at":"2016-09-11T19:40:04Z","git_url":"git://github.com/jmacdotorg/ifcomp.git","ssh_url":"git@github.com:jmacdotorg/ifcomp.git","clone_url":"https://github.com/jmacdotorg/ifcomp.git","svn_url":"https://github.com/jmacdotorg/ifcomp","homepage":null,"size":2926,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62"},"html":{"href":"https://github.com/jmacdotorg/ifcomp/pull/62"},"issue":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/62"},"comments":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/jmacdotorg/ifcomp/statuses/8b74b0ea36a25e98dbfa68c89b964ac42027e58d"}}}}
{"actor":{"display_login":"jmacdotorg"}}