{"action":"created","comment":{"url":"https://api.github.com/repos/usgo/online-ratings/pulls/comments/82509765","pull_request_review_id":3414693,"id":82509765,"diff_hunk":"@@ -245,6 +249,31 @@ class TournamentPlayer(db.Model):\n     def __str__(self):\n         return \"Tournament Player: {}\\n \\\n                 Member found in db: {}\".format(self.name)\n+\n+\n+class Round(db.Model):\n+    __tablename__ = 'tourny_round'\n+    id = db.Column(db.Integer, primary_key=True, autoincrement=True)\n+    tournament_id = db.Column(db.Integer, db.ForeignKey('tournament.id'))\n+    submitted = db.Column(db.Boolean, default=False)\n+\n+\n+class Match(db.Model):\n+    id = db.Column(db.Integer, primary_key=True, autoincrement=True)\n+    player_1_aga_num = db.Column(db.Integer, db.ForeignKey('tournament_player.aga_num'), nullable=True)","path":"web/app/models.py","position":54,"original_position":54,"commit_id":"4b13a568835cce13785b2756b18366a17434db2c","original_commit_id":"4b13a568835cce13785b2756b18366a17434db2c","user":{"login":"TheObtuseAutodidact","id":10384487,"avatar_url":"https://avatars.githubusercontent.com/u/10384487?v=3","gravatar_id":"","url":"https://api.github.com/users/TheObtuseAutodidact","html_url":"https://github.com/TheObtuseAutodidact","followers_url":"https://api.github.com/users/TheObtuseAutodidact/followers","following_url":"https://api.github.com/users/TheObtuseAutodidact/following{/other_user}","gists_url":"https://api.github.com/users/TheObtuseAutodidact/gists{/gist_id}","starred_url":"https://api.github.com/users/TheObtuseAutodidact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheObtuseAutodidact/subscriptions","organizations_url":"https://api.github.com/users/TheObtuseAutodidact/orgs","repos_url":"https://api.github.com/users/TheObtuseAutodidact/repos","events_url":"https://api.github.com/users/TheObtuseAutodidact/events{/privacy}","received_events_url":"https://api.github.com/users/TheObtuseAutodidact/received_events","type":"User","site_admin":false},"body":"Do you mean to simply rename these or to revert to using the TournamentPlayer id?","created_at":"2016-10-08T20:59:54Z","updated_at":"2016-10-08T20:59:54Z","html_url":"https://github.com/usgo/online-ratings/pull/78#discussion_r82509765","pull_request_url":"https://api.github.com/repos/usgo/online-ratings/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/usgo/online-ratings/pulls/comments/82509765"},"html":{"href":"https://github.com/usgo/online-ratings/pull/78#discussion_r82509765"},"pull_request":{"href":"https://api.github.com/repos/usgo/online-ratings/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/usgo/online-ratings/pulls/78","id":88499901,"html_url":"https://github.com/usgo/online-ratings/pull/78","diff_url":"https://github.com/usgo/online-ratings/pull/78.diff","patch_url":"https://github.com/usgo/online-ratings/pull/78.patch","issue_url":"https://api.github.com/repos/usgo/online-ratings/issues/78","number":78,"state":"open","locked":false,"title":"[WIP] Pairing 0.2","user":{"login":"TheObtuseAutodidact","id":10384487,"avatar_url":"https://avatars.githubusercontent.com/u/10384487?v=3","gravatar_id":"","url":"https://api.github.com/users/TheObtuseAutodidact","html_url":"https://github.com/TheObtuseAutodidact","followers_url":"https://api.github.com/users/TheObtuseAutodidact/followers","following_url":"https://api.github.com/users/TheObtuseAutodidact/following{/other_user}","gists_url":"https://api.github.com/users/TheObtuseAutodidact/gists{/gist_id}","starred_url":"https://api.github.com/users/TheObtuseAutodidact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheObtuseAutodidact/subscriptions","organizations_url":"https://api.github.com/users/TheObtuseAutodidact/orgs","repos_url":"https://api.github.com/users/TheObtuseAutodidact/repos","events_url":"https://api.github.com/users/TheObtuseAutodidact/events{/privacy}","received_events_url":"https://api.github.com/users/TheObtuseAutodidact/received_events","type":"User","site_admin":false},"body":"Hey Josh,\r\nFollowing our conversation on Tuesday, I headed off in a direction, hopefully, closer to the mark. \r\nCurrently, a Rounds table has been set up and full_pairings or sets of matches are associated with rounds. \r\nI have not yet started on a pairing function. I'm a little torn on starting on unit tests first(no tests yet) or if I should work on that function in the hopes that will simplify efforts to test. \r\n\r\nThis PR is way too big and for that, I apologise. It might help me in future to try to write out the next thing to be accomplished and to get your feedback on it to see if you imagine it to be a saner size for an increment of work or single PR. \r\n\r\nAnyway, this PR is not yet ready to merge, it's barely ready for feedback. But I'm pushing it up to illustrate activity more than anything else. \r\n ","created_at":"2016-10-07T20:07:22Z","updated_at":"2016-10-08T20:59:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a17cb07e9ddfa5f4f247cd06ce78b727af8e4dac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/usgo/online-ratings/pulls/78/commits","review_comments_url":"https://api.github.com/repos/usgo/online-ratings/pulls/78/comments","review_comment_url":"https://api.github.com/repos/usgo/online-ratings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usgo/online-ratings/issues/78/comments","statuses_url":"https://api.github.com/repos/usgo/online-ratings/statuses/4b13a568835cce13785b2756b18366a17434db2c","head":{"label":"TheObtuseAutodidact:pairing_0.2","ref":"pairing_0.2","sha":"4b13a568835cce13785b2756b18366a17434db2c","user":{"login":"TheObtuseAutodidact","id":10384487,"avatar_url":"https://avatars.githubusercontent.com/u/10384487?v=3","gravatar_id":"","url":"https://api.github.com/users/TheObtuseAutodidact","html_url":"https://github.com/TheObtuseAutodidact","followers_url":"https://api.github.com/users/TheObtuseAutodidact/followers","following_url":"https://api.github.com/users/TheObtuseAutodidact/following{/other_user}","gists_url":"https://api.github.com/users/TheObtuseAutodidact/gists{/gist_id}","starred_url":"https://api.github.com/users/TheObtuseAutodidact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheObtuseAutodidact/subscriptions","organizations_url":"https://api.github.com/users/TheObtuseAutodidact/orgs","repos_url":"https://api.github.com/users/TheObtuseAutodidact/repos","events_url":"https://api.github.com/users/TheObtuseAutodidact/events{/privacy}","received_events_url":"https://api.github.com/users/TheObtuseAutodidact/received_events","type":"User","site_admin":false},"repo":{"id":62089843,"name":"online-ratings","full_name":"TheObtuseAutodidact/online-ratings","owner":{"login":"TheObtuseAutodidact","id":10384487,"avatar_url":"https://avatars.githubusercontent.com/u/10384487?v=3","gravatar_id":"","url":"https://api.github.com/users/TheObtuseAutodidact","html_url":"https://github.com/TheObtuseAutodidact","followers_url":"https://api.github.com/users/TheObtuseAutodidact/followers","following_url":"https://api.github.com/users/TheObtuseAutodidact/following{/other_user}","gists_url":"https://api.github.com/users/TheObtuseAutodidact/gists{/gist_id}","starred_url":"https://api.github.com/users/TheObtuseAutodidact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheObtuseAutodidact/subscriptions","organizations_url":"https://api.github.com/users/TheObtuseAutodidact/orgs","repos_url":"https://api.github.com/users/TheObtuseAutodidact/repos","events_url":"https://api.github.com/users/TheObtuseAutodidact/events{/privacy}","received_events_url":"https://api.github.com/users/TheObtuseAutodidact/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheObtuseAutodidact/online-ratings","description":"AGA Online Ratings protocol and implementation","fork":true,"url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings","forks_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/forks","keys_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/teams","hooks_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/hooks","issue_events_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/issues/events{/number}","events_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/events","assignees_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/assignees{/user}","branches_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/branches{/branch}","tags_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/tags","blobs_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/statuses/{sha}","languages_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/languages","stargazers_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/stargazers","contributors_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/contributors","subscribers_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/subscribers","subscription_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/subscription","commits_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/contents/{+path}","compare_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/merges","archive_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/downloads","issues_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/issues{/number}","pulls_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/pulls{/number}","milestones_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/milestones{/number}","notifications_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/labels{/name}","releases_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/releases{/id}","deployments_url":"https://api.github.com/repos/TheObtuseAutodidact/online-ratings/deployments","created_at":"2016-06-27T21:33:45Z","updated_at":"2016-08-13T20:31:35Z","pushed_at":"2016-10-07T19:44:44Z","git_url":"git://github.com/TheObtuseAutodidact/online-ratings.git","ssh_url":"git@github.com:TheObtuseAutodidact/online-ratings.git","clone_url":"https://github.com/TheObtuseAutodidact/online-ratings.git","svn_url":"https://github.com/TheObtuseAutodidact/online-ratings","homepage":null,"size":412,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"usgo:tournament","ref":"tournament","sha":"f3e887145c3734ce00729facd6b9c303f8d7e027","user":{"login":"usgo","id":510953,"avatar_url":"https://avatars.githubusercontent.com/u/510953?v=3","gravatar_id":"","url":"https://api.github.com/users/usgo","html_url":"https://github.com/usgo","followers_url":"https://api.github.com/users/usgo/followers","following_url":"https://api.github.com/users/usgo/following{/other_user}","gists_url":"https://api.github.com/users/usgo/gists{/gist_id}","starred_url":"https://api.github.com/users/usgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgo/subscriptions","organizations_url":"https://api.github.com/users/usgo/orgs","repos_url":"https://api.github.com/users/usgo/repos","events_url":"https://api.github.com/users/usgo/events{/privacy}","received_events_url":"https://api.github.com/users/usgo/received_events","type":"Organization","site_admin":false},"repo":{"id":22080451,"name":"online-ratings","full_name":"usgo/online-ratings","owner":{"login":"usgo","id":510953,"avatar_url":"https://avatars.githubusercontent.com/u/510953?v=3","gravatar_id":"","url":"https://api.github.com/users/usgo","html_url":"https://github.com/usgo","followers_url":"https://api.github.com/users/usgo/followers","following_url":"https://api.github.com/users/usgo/following{/other_user}","gists_url":"https://api.github.com/users/usgo/gists{/gist_id}","starred_url":"https://api.github.com/users/usgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usgo/subscriptions","organizations_url":"https://api.github.com/users/usgo/orgs","repos_url":"https://api.github.com/users/usgo/repos","events_url":"https://api.github.com/users/usgo/events{/privacy}","received_events_url":"https://api.github.com/users/usgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/usgo/online-ratings","description":"AGA Online Ratings protocol and implementation","fork":false,"url":"https://api.github.com/repos/usgo/online-ratings","forks_url":"https://api.github.com/repos/usgo/online-ratings/forks","keys_url":"https://api.github.com/repos/usgo/online-ratings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usgo/online-ratings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usgo/online-ratings/teams","hooks_url":"https://api.github.com/repos/usgo/online-ratings/hooks","issue_events_url":"https://api.github.com/repos/usgo/online-ratings/issues/events{/number}","events_url":"https://api.github.com/repos/usgo/online-ratings/events","assignees_url":"https://api.github.com/repos/usgo/online-ratings/assignees{/user}","branches_url":"https://api.github.com/repos/usgo/online-ratings/branches{/branch}","tags_url":"https://api.github.com/repos/usgo/online-ratings/tags","blobs_url":"https://api.github.com/repos/usgo/online-ratings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usgo/online-ratings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usgo/online-ratings/git/refs{/sha}","trees_url":"https://api.github.com/repos/usgo/online-ratings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usgo/online-ratings/statuses/{sha}","languages_url":"https://api.github.com/repos/usgo/online-ratings/languages","stargazers_url":"https://api.github.com/repos/usgo/online-ratings/stargazers","contributors_url":"https://api.github.com/repos/usgo/online-ratings/contributors","subscribers_url":"https://api.github.com/repos/usgo/online-ratings/subscribers","subscription_url":"https://api.github.com/repos/usgo/online-ratings/subscription","commits_url":"https://api.github.com/repos/usgo/online-ratings/commits{/sha}","git_commits_url":"https://api.github.com/repos/usgo/online-ratings/git/commits{/sha}","comments_url":"https://api.github.com/repos/usgo/online-ratings/comments{/number}","issue_comment_url":"https://api.github.com/repos/usgo/online-ratings/issues/comments{/number}","contents_url":"https://api.github.com/repos/usgo/online-ratings/contents/{+path}","compare_url":"https://api.github.com/repos/usgo/online-ratings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usgo/online-ratings/merges","archive_url":"https://api.github.com/repos/usgo/online-ratings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usgo/online-ratings/downloads","issues_url":"https://api.github.com/repos/usgo/online-ratings/issues{/number}","pulls_url":"https://api.github.com/repos/usgo/online-ratings/pulls{/number}","milestones_url":"https://api.github.com/repos/usgo/online-ratings/milestones{/number}","notifications_url":"https://api.github.com/repos/usgo/online-ratings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usgo/online-ratings/labels{/name}","releases_url":"https://api.github.com/repos/usgo/online-ratings/releases{/id}","deployments_url":"https://api.github.com/repos/usgo/online-ratings/deployments","created_at":"2014-07-21T21:13:44Z","updated_at":"2016-08-08T04:01:35Z","pushed_at":"2016-10-07T20:07:22Z","git_url":"git://github.com/usgo/online-ratings.git","ssh_url":"git@github.com:usgo/online-ratings.git","clone_url":"https://github.com/usgo/online-ratings.git","svn_url":"https://github.com/usgo/online-ratings","homepage":null,"size":479,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":19,"forks":11,"open_issues":19,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usgo/online-ratings/pulls/78"},"html":{"href":"https://github.com/usgo/online-ratings/pull/78"},"issue":{"href":"https://api.github.com/repos/usgo/online-ratings/issues/78"},"comments":{"href":"https://api.github.com/repos/usgo/online-ratings/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/usgo/online-ratings/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/usgo/online-ratings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usgo/online-ratings/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/usgo/online-ratings/statuses/4b13a568835cce13785b2756b18366a17434db2c"}}}}
{"actor":{"display_login":"TheObtuseAutodidact"}}