{"action":"created","comment":{"url":"https://api.github.com/repos/joshherkness/AR-Top/pulls/comments/168766372","pull_request_review_id":97189850,"id":168766372,"diff_hunk":"@@ -1,47 +1,81 @@\n-from flask import Flask, render_template\n+from flask import Flask, render_template, request\n from flask_socketio import SocketIO, send, emit\n+from secrets import SOCKETIO_SECRET_KEY\n+from models import Session\n+from flask_mongoengine import MongoEngine\n \n+#=====================================================\n+# Global vars\n+#=====================================================\n app = Flask(__name__)\n-app.config['SECRET_KEY'] = 'secret!'\n+app.config['SECRET_KEY'] = SOCKETIO_SECRET_KEY\n+app.config.from_object('config')\n+\n+db = MongoEngine(app)\n+\n socketio = SocketIO(app)\n+open_rooms = dict()\n+bijection = dict()","path":"server/somesockets.py","position":20,"original_position":20,"commit_id":"b968172b0ad63144f2f99abe1b241bfa5798ede4","original_commit_id":"b968172b0ad63144f2f99abe1b241bfa5798ede4","user":{"login":"joshherkness","id":5797470,"avatar_url":"https://avatars1.githubusercontent.com/u/5797470?v=4","gravatar_id":"","url":"https://api.github.com/users/joshherkness","html_url":"https://github.com/joshherkness","followers_url":"https://api.github.com/users/joshherkness/followers","following_url":"https://api.github.com/users/joshherkness/following{/other_user}","gists_url":"https://api.github.com/users/joshherkness/gists{/gist_id}","starred_url":"https://api.github.com/users/joshherkness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshherkness/subscriptions","organizations_url":"https://api.github.com/users/joshherkness/orgs","repos_url":"https://api.github.com/users/joshherkness/repos","events_url":"https://api.github.com/users/joshherkness/events{/privacy}","received_events_url":"https://api.github.com/users/joshherkness/received_events","type":"User","site_admin":false},"body":"What does bijection hold?","created_at":"2018-02-16T14:15:08Z","updated_at":"2018-02-16T14:15:08Z","html_url":"https://github.com/joshherkness/AR-Top/pull/184#discussion_r168766372","pull_request_url":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/joshherkness/AR-Top/pulls/comments/168766372"},"html":{"href":"https://github.com/joshherkness/AR-Top/pull/184#discussion_r168766372"},"pull_request":{"href":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184"}}},"pull_request":{"url":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184","id":169544001,"html_url":"https://github.com/joshherkness/AR-Top/pull/184","diff_url":"https://github.com/joshherkness/AR-Top/pull/184.diff","patch_url":"https://github.com/joshherkness/AR-Top/pull/184.patch","issue_url":"https://api.github.com/repos/joshherkness/AR-Top/issues/184","number":184,"state":"open","locked":false,"title":"150 socketio connection","user":{"login":"AnthonyHewins","id":17508132,"avatar_url":"https://avatars3.githubusercontent.com/u/17508132?v=4","gravatar_id":"","url":"https://api.github.com/users/AnthonyHewins","html_url":"https://github.com/AnthonyHewins","followers_url":"https://api.github.com/users/AnthonyHewins/followers","following_url":"https://api.github.com/users/AnthonyHewins/following{/other_user}","gists_url":"https://api.github.com/users/AnthonyHewins/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonyHewins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonyHewins/subscriptions","organizations_url":"https://api.github.com/users/AnthonyHewins/orgs","repos_url":"https://api.github.com/users/AnthonyHewins/repos","events_url":"https://api.github.com/users/AnthonyHewins/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonyHewins/received_events","type":"User","site_admin":false},"body":"So i just got everything semi-working, there's not a whole lot, but within the next few days I'll be able to hammer everything out since tests are working and the DB looks like it hooked up successfully too.\r\n\r\nWhat I'm gonna fix:\r\n- Going to add a method(s) to session that handles all modifications to a room\r\n- Going to add specialized routes for errors, and might make a decorator for it\r\n- Considering making a custom data structure for adding and removing users","created_at":"2018-02-16T04:01:05Z","updated_at":"2018-02-16T14:15:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"352bd94c61115eeaff7b8c6d15300776f372237c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jjrobertson14","id":17655636,"avatar_url":"https://avatars0.githubusercontent.com/u/17655636?v=4","gravatar_id":"","url":"https://api.github.com/users/jjrobertson14","html_url":"https://github.com/jjrobertson14","followers_url":"https://api.github.com/users/jjrobertson14/followers","following_url":"https://api.github.com/users/jjrobertson14/following{/other_user}","gists_url":"https://api.github.com/users/jjrobertson14/gists{/gist_id}","starred_url":"https://api.github.com/users/jjrobertson14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjrobertson14/subscriptions","organizations_url":"https://api.github.com/users/jjrobertson14/orgs","repos_url":"https://api.github.com/users/jjrobertson14/repos","events_url":"https://api.github.com/users/jjrobertson14/events{/privacy}","received_events_url":"https://api.github.com/users/jjrobertson14/received_events","type":"User","site_admin":false},{"login":"goeteeks","id":17956032,"avatar_url":"https://avatars0.githubusercontent.com/u/17956032?v=4","gravatar_id":"","url":"https://api.github.com/users/goeteeks","html_url":"https://github.com/goeteeks","followers_url":"https://api.github.com/users/goeteeks/followers","following_url":"https://api.github.com/users/goeteeks/following{/other_user}","gists_url":"https://api.github.com/users/goeteeks/gists{/gist_id}","starred_url":"https://api.github.com/users/goeteeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goeteeks/subscriptions","organizations_url":"https://api.github.com/users/goeteeks/orgs","repos_url":"https://api.github.com/users/goeteeks/repos","events_url":"https://api.github.com/users/goeteeks/events{/privacy}","received_events_url":"https://api.github.com/users/goeteeks/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184/commits","review_comments_url":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184/comments","review_comment_url":"https://api.github.com/repos/joshherkness/AR-Top/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joshherkness/AR-Top/issues/184/comments","statuses_url":"https://api.github.com/repos/joshherkness/AR-Top/statuses/b968172b0ad63144f2f99abe1b241bfa5798ede4","head":{"label":"joshherkness:150-socketio-connection","ref":"150-socketio-connection","sha":"b968172b0ad63144f2f99abe1b241bfa5798ede4","user":{"login":"joshherkness","id":5797470,"avatar_url":"https://avatars1.githubusercontent.com/u/5797470?v=4","gravatar_id":"","url":"https://api.github.com/users/joshherkness","html_url":"https://github.com/joshherkness","followers_url":"https://api.github.com/users/joshherkness/followers","following_url":"https://api.github.com/users/joshherkness/following{/other_user}","gists_url":"https://api.github.com/users/joshherkness/gists{/gist_id}","starred_url":"https://api.github.com/users/joshherkness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshherkness/subscriptions","organizations_url":"https://api.github.com/users/joshherkness/orgs","repos_url":"https://api.github.com/users/joshherkness/repos","events_url":"https://api.github.com/users/joshherkness/events{/privacy}","received_events_url":"https://api.github.com/users/joshherkness/received_events","type":"User","site_admin":false},"repo":{"id":116722650,"name":"AR-Top","full_name":"joshherkness/AR-Top","owner":{"login":"joshherkness","id":5797470,"avatar_url":"https://avatars1.githubusercontent.com/u/5797470?v=4","gravatar_id":"","url":"https://api.github.com/users/joshherkness","html_url":"https://github.com/joshherkness","followers_url":"https://api.github.com/users/joshherkness/followers","following_url":"https://api.github.com/users/joshherkness/following{/other_user}","gists_url":"https://api.github.com/users/joshherkness/gists{/gist_id}","starred_url":"https://api.github.com/users/joshherkness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshherkness/subscriptions","organizations_url":"https://api.github.com/users/joshherkness/orgs","repos_url":"https://api.github.com/users/joshherkness/repos","events_url":"https://api.github.com/users/joshherkness/events{/privacy}","received_events_url":"https://api.github.com/users/joshherkness/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshherkness/AR-Top","description":null,"fork":false,"url":"https://api.github.com/repos/joshherkness/AR-Top","forks_url":"https://api.github.com/repos/joshherkness/AR-Top/forks","keys_url":"https://api.github.com/repos/joshherkness/AR-Top/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshherkness/AR-Top/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshherkness/AR-Top/teams","hooks_url":"https://api.github.com/repos/joshherkness/AR-Top/hooks","issue_events_url":"https://api.github.com/repos/joshherkness/AR-Top/issues/events{/number}","events_url":"https://api.github.com/repos/joshherkness/AR-Top/events","assignees_url":"https://api.github.com/repos/joshherkness/AR-Top/assignees{/user}","branches_url":"https://api.github.com/repos/joshherkness/AR-Top/branches{/branch}","tags_url":"https://api.github.com/repos/joshherkness/AR-Top/tags","blobs_url":"https://api.github.com/repos/joshherkness/AR-Top/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshherkness/AR-Top/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshherkness/AR-Top/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshherkness/AR-Top/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshherkness/AR-Top/statuses/{sha}","languages_url":"https://api.github.com/repos/joshherkness/AR-Top/languages","stargazers_url":"https://api.github.com/repos/joshherkness/AR-Top/stargazers","contributors_url":"https://api.github.com/repos/joshherkness/AR-Top/contributors","subscribers_url":"https://api.github.com/repos/joshherkness/AR-Top/subscribers","subscription_url":"https://api.github.com/repos/joshherkness/AR-Top/subscription","commits_url":"https://api.github.com/repos/joshherkness/AR-Top/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshherkness/AR-Top/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshherkness/AR-Top/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshherkness/AR-Top/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshherkness/AR-Top/contents/{+path}","compare_url":"https://api.github.com/repos/joshherkness/AR-Top/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshherkness/AR-Top/merges","archive_url":"https://api.github.com/repos/joshherkness/AR-Top/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshherkness/AR-Top/downloads","issues_url":"https://api.github.com/repos/joshherkness/AR-Top/issues{/number}","pulls_url":"https://api.github.com/repos/joshherkness/AR-Top/pulls{/number}","milestones_url":"https://api.github.com/repos/joshherkness/AR-Top/milestones{/number}","notifications_url":"https://api.github.com/repos/joshherkness/AR-Top/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshherkness/AR-Top/labels{/name}","releases_url":"https://api.github.com/repos/joshherkness/AR-Top/releases{/id}","deployments_url":"https://api.github.com/repos/joshherkness/AR-Top/deployments","created_at":"2018-01-08T20:09:14Z","updated_at":"2018-01-28T21:15:01Z","pushed_at":"2018-02-16T04:43:53Z","git_url":"git://github.com/joshherkness/AR-Top.git","ssh_url":"git@github.com:joshherkness/AR-Top.git","clone_url":"https://github.com/joshherkness/AR-Top.git","svn_url":"https://github.com/joshherkness/AR-Top","homepage":null,"size":24518,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":19,"watchers":0,"default_branch":"development"}},"base":{"label":"joshherkness:development","ref":"development","sha":"3c258f195d44dc0bbebfef79b0ffcd0d95e74a98","user":{"login":"joshherkness","id":5797470,"avatar_url":"https://avatars1.githubusercontent.com/u/5797470?v=4","gravatar_id":"","url":"https://api.github.com/users/joshherkness","html_url":"https://github.com/joshherkness","followers_url":"https://api.github.com/users/joshherkness/followers","following_url":"https://api.github.com/users/joshherkness/following{/other_user}","gists_url":"https://api.github.com/users/joshherkness/gists{/gist_id}","starred_url":"https://api.github.com/users/joshherkness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshherkness/subscriptions","organizations_url":"https://api.github.com/users/joshherkness/orgs","repos_url":"https://api.github.com/users/joshherkness/repos","events_url":"https://api.github.com/users/joshherkness/events{/privacy}","received_events_url":"https://api.github.com/users/joshherkness/received_events","type":"User","site_admin":false},"repo":{"id":116722650,"name":"AR-Top","full_name":"joshherkness/AR-Top","owner":{"login":"joshherkness","id":5797470,"avatar_url":"https://avatars1.githubusercontent.com/u/5797470?v=4","gravatar_id":"","url":"https://api.github.com/users/joshherkness","html_url":"https://github.com/joshherkness","followers_url":"https://api.github.com/users/joshherkness/followers","following_url":"https://api.github.com/users/joshherkness/following{/other_user}","gists_url":"https://api.github.com/users/joshherkness/gists{/gist_id}","starred_url":"https://api.github.com/users/joshherkness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshherkness/subscriptions","organizations_url":"https://api.github.com/users/joshherkness/orgs","repos_url":"https://api.github.com/users/joshherkness/repos","events_url":"https://api.github.com/users/joshherkness/events{/privacy}","received_events_url":"https://api.github.com/users/joshherkness/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshherkness/AR-Top","description":null,"fork":false,"url":"https://api.github.com/repos/joshherkness/AR-Top","forks_url":"https://api.github.com/repos/joshherkness/AR-Top/forks","keys_url":"https://api.github.com/repos/joshherkness/AR-Top/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshherkness/AR-Top/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshherkness/AR-Top/teams","hooks_url":"https://api.github.com/repos/joshherkness/AR-Top/hooks","issue_events_url":"https://api.github.com/repos/joshherkness/AR-Top/issues/events{/number}","events_url":"https://api.github.com/repos/joshherkness/AR-Top/events","assignees_url":"https://api.github.com/repos/joshherkness/AR-Top/assignees{/user}","branches_url":"https://api.github.com/repos/joshherkness/AR-Top/branches{/branch}","tags_url":"https://api.github.com/repos/joshherkness/AR-Top/tags","blobs_url":"https://api.github.com/repos/joshherkness/AR-Top/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshherkness/AR-Top/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshherkness/AR-Top/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshherkness/AR-Top/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshherkness/AR-Top/statuses/{sha}","languages_url":"https://api.github.com/repos/joshherkness/AR-Top/languages","stargazers_url":"https://api.github.com/repos/joshherkness/AR-Top/stargazers","contributors_url":"https://api.github.com/repos/joshherkness/AR-Top/contributors","subscribers_url":"https://api.github.com/repos/joshherkness/AR-Top/subscribers","subscription_url":"https://api.github.com/repos/joshherkness/AR-Top/subscription","commits_url":"https://api.github.com/repos/joshherkness/AR-Top/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshherkness/AR-Top/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshherkness/AR-Top/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshherkness/AR-Top/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshherkness/AR-Top/contents/{+path}","compare_url":"https://api.github.com/repos/joshherkness/AR-Top/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshherkness/AR-Top/merges","archive_url":"https://api.github.com/repos/joshherkness/AR-Top/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshherkness/AR-Top/downloads","issues_url":"https://api.github.com/repos/joshherkness/AR-Top/issues{/number}","pulls_url":"https://api.github.com/repos/joshherkness/AR-Top/pulls{/number}","milestones_url":"https://api.github.com/repos/joshherkness/AR-Top/milestones{/number}","notifications_url":"https://api.github.com/repos/joshherkness/AR-Top/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshherkness/AR-Top/labels{/name}","releases_url":"https://api.github.com/repos/joshherkness/AR-Top/releases{/id}","deployments_url":"https://api.github.com/repos/joshherkness/AR-Top/deployments","created_at":"2018-01-08T20:09:14Z","updated_at":"2018-01-28T21:15:01Z","pushed_at":"2018-02-16T04:43:53Z","git_url":"git://github.com/joshherkness/AR-Top.git","ssh_url":"git@github.com:joshherkness/AR-Top.git","clone_url":"https://github.com/joshherkness/AR-Top.git","svn_url":"https://github.com/joshherkness/AR-Top","homepage":null,"size":24518,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":19,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184"},"html":{"href":"https://github.com/joshherkness/AR-Top/pull/184"},"issue":{"href":"https://api.github.com/repos/joshherkness/AR-Top/issues/184"},"comments":{"href":"https://api.github.com/repos/joshherkness/AR-Top/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/joshherkness/AR-Top/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joshherkness/AR-Top/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/joshherkness/AR-Top/statuses/b968172b0ad63144f2f99abe1b241bfa5798ede4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"joshherkness"}}