{"action":"created","comment":{"url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/comments/230889401","pull_request_review_id":171730901,"id":230889401,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDg4OTQwMQ==","diff_hunk":"@@ -1,23 +1,39 @@\n+import atexit\n+\n from flask import Flask\n from flask_restful import Resource, Api\n-from flask_sqlalchemy import SQLAlchemy\n from flask_migrate import Migrate\n from flask_cors import CORS\n+from apscheduler.schedulers.background import BackgroundScheduler\n \n from match import MatchResource, MatchesResource, AnalyzePlayers, AnalyzeTeams\n from player import PlayerResource, PlayersResource\n from db import *\n+from slack_sync import sync_new_left_channel_members, sync_existing_members_info\n \n \n app = Flask(__name__)\n-app.config['SQLALCHEMY_DATABASE_URI'] = f\"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}/{DB_DATABASE}\"\n-app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False\n+app.config['SQLALCHEMY_DATABASE_URI'] = \\\n+    f\"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}/{DB_DATABASE}\"\n+app.config['SQLALCHEMY_TRAdCK_MODIFICATIONS'] = False","path":"backend/src/app.py","position":21,"original_position":21,"commit_id":"4ab337a24ce60f7f5b95729ebf0fc75149a8292c","original_commit_id":"4ab337a24ce60f7f5b95729ebf0fc75149a8292c","user":{"login":"StevenReitsma","id":4895139,"node_id":"MDQ6VXNlcjQ4OTUxMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/4895139?v=4","gravatar_id":"","url":"https://api.github.com/users/StevenReitsma","html_url":"https://github.com/StevenReitsma","followers_url":"https://api.github.com/users/StevenReitsma/followers","following_url":"https://api.github.com/users/StevenReitsma/following{/other_user}","gists_url":"https://api.github.com/users/StevenReitsma/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenReitsma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenReitsma/subscriptions","organizations_url":"https://api.github.com/users/StevenReitsma/orgs","repos_url":"https://api.github.com/users/StevenReitsma/repos","events_url":"https://api.github.com/users/StevenReitsma/events{/privacy}","received_events_url":"https://api.github.com/users/StevenReitsma/received_events","type":"User","site_admin":false},"body":"Random `d` ingeslopen","created_at":"2018-11-05T19:53:26Z","updated_at":"2018-11-05T19:53:26Z","html_url":"https://github.com/BigDataRepublic/kickerscore/pull/21#discussion_r230889401","pull_request_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/comments/230889401"},"html":{"href":"https://github.com/BigDataRepublic/kickerscore/pull/21#discussion_r230889401"},"pull_request":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21","id":226380661,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MzgwNjYx","html_url":"https://github.com/BigDataRepublic/kickerscore/pull/21","diff_url":"https://github.com/BigDataRepublic/kickerscore/pull/21.diff","patch_url":"https://github.com/BigDataRepublic/kickerscore/pull/21.patch","issue_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/21","number":21,"state":"open","locked":false,"title":"Fancier add match page","user":{"login":"DJLemkes","id":3764257,"node_id":"MDQ6VXNlcjM3NjQyNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/3764257?v=4","gravatar_id":"","url":"https://api.github.com/users/DJLemkes","html_url":"https://github.com/DJLemkes","followers_url":"https://api.github.com/users/DJLemkes/followers","following_url":"https://api.github.com/users/DJLemkes/following{/other_user}","gists_url":"https://api.github.com/users/DJLemkes/gists{/gist_id}","starred_url":"https://api.github.com/users/DJLemkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJLemkes/subscriptions","organizations_url":"https://api.github.com/users/DJLemkes/orgs","repos_url":"https://api.github.com/users/DJLemkes/repos","events_url":"https://api.github.com/users/DJLemkes/events{/privacy}","received_events_url":"https://api.github.com/users/DJLemkes/received_events","type":"User","site_admin":false},"body":"__WARNING__: requires coordination before deployment! Current player matches should be migrated onto new Slack-based players by hand.\r\n\r\nI've created a shared folder in Lastpass that contains the required Slack Oauth token and Kickerscore channel ID.\r\n\r\n_Proposal:_ let's merge and deploy this on a friday afternoon, once you guys have approved this PR.","created_at":"2018-10-28T16:49:39Z","updated_at":"2018-11-05T19:53:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f114982bb9b536af494e0432b382432754311ece","assignee":null,"assignees":[],"requested_reviewers":[{"login":"axelgobletbdr","id":40762710,"node_id":"MDQ6VXNlcjQwNzYyNzEw","avatar_url":"https://avatars2.githubusercontent.com/u/40762710?v=4","gravatar_id":"","url":"https://api.github.com/users/axelgobletbdr","html_url":"https://github.com/axelgobletbdr","followers_url":"https://api.github.com/users/axelgobletbdr/followers","following_url":"https://api.github.com/users/axelgobletbdr/following{/other_user}","gists_url":"https://api.github.com/users/axelgobletbdr/gists{/gist_id}","starred_url":"https://api.github.com/users/axelgobletbdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelgobletbdr/subscriptions","organizations_url":"https://api.github.com/users/axelgobletbdr/orgs","repos_url":"https://api.github.com/users/axelgobletbdr/repos","events_url":"https://api.github.com/users/axelgobletbdr/events{/privacy}","received_events_url":"https://api.github.com/users/axelgobletbdr/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21/commits","review_comments_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21/comments","review_comment_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/21/comments","statuses_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/statuses/4ab337a24ce60f7f5b95729ebf0fc75149a8292c","head":{"label":"BigDataRepublic:fancier-add-match-page","ref":"fancier-add-match-page","sha":"4ab337a24ce60f7f5b95729ebf0fc75149a8292c","user":{"login":"BigDataRepublic","id":13624746,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI0NzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/13624746?v=4","gravatar_id":"","url":"https://api.github.com/users/BigDataRepublic","html_url":"https://github.com/BigDataRepublic","followers_url":"https://api.github.com/users/BigDataRepublic/followers","following_url":"https://api.github.com/users/BigDataRepublic/following{/other_user}","gists_url":"https://api.github.com/users/BigDataRepublic/gists{/gist_id}","starred_url":"https://api.github.com/users/BigDataRepublic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigDataRepublic/subscriptions","organizations_url":"https://api.github.com/users/BigDataRepublic/orgs","repos_url":"https://api.github.com/users/BigDataRepublic/repos","events_url":"https://api.github.com/users/BigDataRepublic/events{/privacy}","received_events_url":"https://api.github.com/users/BigDataRepublic/received_events","type":"Organization","site_admin":false},"repo":{"id":138612105,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg2MTIxMDU=","name":"kickerscore","full_name":"BigDataRepublic/kickerscore","private":false,"owner":{"login":"BigDataRepublic","id":13624746,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI0NzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/13624746?v=4","gravatar_id":"","url":"https://api.github.com/users/BigDataRepublic","html_url":"https://github.com/BigDataRepublic","followers_url":"https://api.github.com/users/BigDataRepublic/followers","following_url":"https://api.github.com/users/BigDataRepublic/following{/other_user}","gists_url":"https://api.github.com/users/BigDataRepublic/gists{/gist_id}","starred_url":"https://api.github.com/users/BigDataRepublic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigDataRepublic/subscriptions","organizations_url":"https://api.github.com/users/BigDataRepublic/orgs","repos_url":"https://api.github.com/users/BigDataRepublic/repos","events_url":"https://api.github.com/users/BigDataRepublic/events{/privacy}","received_events_url":"https://api.github.com/users/BigDataRepublic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BigDataRepublic/kickerscore","description":"TrueSkill tracking for kickers/foosball","fork":false,"url":"https://api.github.com/repos/BigDataRepublic/kickerscore","forks_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/forks","keys_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/teams","hooks_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/hooks","issue_events_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/events{/number}","events_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/events","assignees_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/assignees{/user}","branches_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/branches{/branch}","tags_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/tags","blobs_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/refs{/sha}","trees_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/statuses/{sha}","languages_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/languages","stargazers_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/stargazers","contributors_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/contributors","subscribers_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/subscribers","subscription_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/subscription","commits_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/commits{/sha}","git_commits_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/commits{/sha}","comments_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/comments{/number}","issue_comment_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/comments{/number}","contents_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/contents/{+path}","compare_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/merges","archive_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/downloads","issues_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues{/number}","pulls_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls{/number}","milestones_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/milestones{/number}","notifications_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/labels{/name}","releases_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/releases{/id}","deployments_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/deployments","created_at":"2018-06-25T15:13:59Z","updated_at":"2018-10-19T14:07:23Z","pushed_at":"2018-10-28T16:54:54Z","git_url":"git://github.com/BigDataRepublic/kickerscore.git","ssh_url":"git@github.com:BigDataRepublic/kickerscore.git","clone_url":"https://github.com/BigDataRepublic/kickerscore.git","svn_url":"https://github.com/BigDataRepublic/kickerscore","homepage":null,"size":546,"stargazers_count":0,"watchers_count":0,"language":"Python","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":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"BigDataRepublic:master","ref":"master","sha":"8d56617bf4c160e6a14ce8698b97345c28fb32ae","user":{"login":"BigDataRepublic","id":13624746,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI0NzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/13624746?v=4","gravatar_id":"","url":"https://api.github.com/users/BigDataRepublic","html_url":"https://github.com/BigDataRepublic","followers_url":"https://api.github.com/users/BigDataRepublic/followers","following_url":"https://api.github.com/users/BigDataRepublic/following{/other_user}","gists_url":"https://api.github.com/users/BigDataRepublic/gists{/gist_id}","starred_url":"https://api.github.com/users/BigDataRepublic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigDataRepublic/subscriptions","organizations_url":"https://api.github.com/users/BigDataRepublic/orgs","repos_url":"https://api.github.com/users/BigDataRepublic/repos","events_url":"https://api.github.com/users/BigDataRepublic/events{/privacy}","received_events_url":"https://api.github.com/users/BigDataRepublic/received_events","type":"Organization","site_admin":false},"repo":{"id":138612105,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg2MTIxMDU=","name":"kickerscore","full_name":"BigDataRepublic/kickerscore","private":false,"owner":{"login":"BigDataRepublic","id":13624746,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjI0NzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/13624746?v=4","gravatar_id":"","url":"https://api.github.com/users/BigDataRepublic","html_url":"https://github.com/BigDataRepublic","followers_url":"https://api.github.com/users/BigDataRepublic/followers","following_url":"https://api.github.com/users/BigDataRepublic/following{/other_user}","gists_url":"https://api.github.com/users/BigDataRepublic/gists{/gist_id}","starred_url":"https://api.github.com/users/BigDataRepublic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigDataRepublic/subscriptions","organizations_url":"https://api.github.com/users/BigDataRepublic/orgs","repos_url":"https://api.github.com/users/BigDataRepublic/repos","events_url":"https://api.github.com/users/BigDataRepublic/events{/privacy}","received_events_url":"https://api.github.com/users/BigDataRepublic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BigDataRepublic/kickerscore","description":"TrueSkill tracking for kickers/foosball","fork":false,"url":"https://api.github.com/repos/BigDataRepublic/kickerscore","forks_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/forks","keys_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/teams","hooks_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/hooks","issue_events_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/events{/number}","events_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/events","assignees_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/assignees{/user}","branches_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/branches{/branch}","tags_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/tags","blobs_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/refs{/sha}","trees_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/statuses/{sha}","languages_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/languages","stargazers_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/stargazers","contributors_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/contributors","subscribers_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/subscribers","subscription_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/subscription","commits_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/commits{/sha}","git_commits_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/git/commits{/sha}","comments_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/comments{/number}","issue_comment_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/comments{/number}","contents_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/contents/{+path}","compare_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/merges","archive_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/downloads","issues_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues{/number}","pulls_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls{/number}","milestones_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/milestones{/number}","notifications_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/labels{/name}","releases_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/releases{/id}","deployments_url":"https://api.github.com/repos/BigDataRepublic/kickerscore/deployments","created_at":"2018-06-25T15:13:59Z","updated_at":"2018-10-19T14:07:23Z","pushed_at":"2018-10-28T16:54:54Z","git_url":"git://github.com/BigDataRepublic/kickerscore.git","ssh_url":"git@github.com:BigDataRepublic/kickerscore.git","clone_url":"https://github.com/BigDataRepublic/kickerscore.git","svn_url":"https://github.com/BigDataRepublic/kickerscore","homepage":null,"size":546,"stargazers_count":0,"watchers_count":0,"language":"Python","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":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21"},"html":{"href":"https://github.com/BigDataRepublic/kickerscore/pull/21"},"issue":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/21"},"comments":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/BigDataRepublic/kickerscore/statuses/4ab337a24ce60f7f5b95729ebf0fc75149a8292c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"StevenReitsma"}}