{"action":"created","comment":{"url":"https://api.github.com/repos/skylines-project/skylines/pulls/comments/29098926","id":29098926,"diff_hunk":"@@ -0,0 +1,35 @@\n+from threading import Thread\n+from flask import current_app, copy_current_request_context\n+from flask_mail import Message\n+\n+\n+def send_async(msg):","path":"skylines/lib/emails.py","position":6,"original_position":6,"commit_id":"0d989e3e4f4f007d70825a311ce717e154f86dc8","original_commit_id":"0d989e3e4f4f007d70825a311ce717e154f86dc8","user":{"login":"TobiasLohner","id":609110,"avatar_url":"https://avatars.githubusercontent.com/u/609110?v=3","gravatar_id":"","url":"https://api.github.com/users/TobiasLohner","html_url":"https://github.com/TobiasLohner","followers_url":"https://api.github.com/users/TobiasLohner/followers","following_url":"https://api.github.com/users/TobiasLohner/following{/other_user}","gists_url":"https://api.github.com/users/TobiasLohner/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiasLohner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiasLohner/subscriptions","organizations_url":"https://api.github.com/users/TobiasLohner/orgs","repos_url":"https://api.github.com/users/TobiasLohner/repos","events_url":"https://api.github.com/users/TobiasLohner/events{/privacy}","received_events_url":"https://api.github.com/users/TobiasLohner/received_events","type":"User","site_admin":false},"body":"Wouldn't it be useful to use our celery backend to send emails?","created_at":"2015-04-25T08:18:35Z","updated_at":"2015-04-25T08:18:35Z","html_url":"https://github.com/skylines-project/skylines/pull/382#discussion_r29098926","pull_request_url":"https://api.github.com/repos/skylines-project/skylines/pulls/382","_links":{"self":{"href":"https://api.github.com/repos/skylines-project/skylines/pulls/comments/29098926"},"html":{"href":"https://github.com/skylines-project/skylines/pull/382#discussion_r29098926"},"pull_request":{"href":"https://api.github.com/repos/skylines-project/skylines/pulls/382"}}},"pull_request":{"url":"https://api.github.com/repos/skylines-project/skylines/pulls/382","id":30722234,"html_url":"https://github.com/skylines-project/skylines/pull/382","diff_url":"https://github.com/skylines-project/skylines/pull/382.diff","patch_url":"https://github.com/skylines-project/skylines/pull/382.patch","issue_url":"https://api.github.com/repos/skylines-project/skylines/issues/382","number":382,"state":"open","locked":false,"title":"Emailing and password recovery fix","user":{"login":"primozs","id":1006789,"avatar_url":"https://avatars.githubusercontent.com/u/1006789?v=3","gravatar_id":"","url":"https://api.github.com/users/primozs","html_url":"https://github.com/primozs","followers_url":"https://api.github.com/users/primozs/followers","following_url":"https://api.github.com/users/primozs/following{/other_user}","gists_url":"https://api.github.com/users/primozs/gists{/gist_id}","starred_url":"https://api.github.com/users/primozs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primozs/subscriptions","organizations_url":"https://api.github.com/users/primozs/orgs","repos_url":"https://api.github.com/users/primozs/repos","events_url":"https://api.github.com/users/primozs/events{/privacy}","received_events_url":"https://api.github.com/users/primozs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-08T16:37:17Z","updated_at":"2015-04-25T08:18:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6aa343939c06abbcdea5cc695eaaa43f065957d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/skylines-project/skylines/pulls/382/commits","review_comments_url":"https://api.github.com/repos/skylines-project/skylines/pulls/382/comments","review_comment_url":"https://api.github.com/repos/skylines-project/skylines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skylines-project/skylines/issues/382/comments","statuses_url":"https://api.github.com/repos/skylines-project/skylines/statuses/0d989e3e4f4f007d70825a311ce717e154f86dc8","head":{"label":"primozs:emails","ref":"emails","sha":"0d989e3e4f4f007d70825a311ce717e154f86dc8","user":{"login":"primozs","id":1006789,"avatar_url":"https://avatars.githubusercontent.com/u/1006789?v=3","gravatar_id":"","url":"https://api.github.com/users/primozs","html_url":"https://github.com/primozs","followers_url":"https://api.github.com/users/primozs/followers","following_url":"https://api.github.com/users/primozs/following{/other_user}","gists_url":"https://api.github.com/users/primozs/gists{/gist_id}","starred_url":"https://api.github.com/users/primozs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primozs/subscriptions","organizations_url":"https://api.github.com/users/primozs/orgs","repos_url":"https://api.github.com/users/primozs/repos","events_url":"https://api.github.com/users/primozs/events{/privacy}","received_events_url":"https://api.github.com/users/primozs/received_events","type":"User","site_admin":false},"repo":{"id":24720670,"name":"skylines","full_name":"primozs/skylines","owner":{"login":"primozs","id":1006789,"avatar_url":"https://avatars.githubusercontent.com/u/1006789?v=3","gravatar_id":"","url":"https://api.github.com/users/primozs","html_url":"https://github.com/primozs","followers_url":"https://api.github.com/users/primozs/followers","following_url":"https://api.github.com/users/primozs/following{/other_user}","gists_url":"https://api.github.com/users/primozs/gists{/gist_id}","starred_url":"https://api.github.com/users/primozs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primozs/subscriptions","organizations_url":"https://api.github.com/users/primozs/orgs","repos_url":"https://api.github.com/users/primozs/repos","events_url":"https://api.github.com/users/primozs/events{/privacy}","received_events_url":"https://api.github.com/users/primozs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/primozs/skylines","description":"Live tracking, flight database and competition framework","fork":true,"url":"https://api.github.com/repos/primozs/skylines","forks_url":"https://api.github.com/repos/primozs/skylines/forks","keys_url":"https://api.github.com/repos/primozs/skylines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/primozs/skylines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/primozs/skylines/teams","hooks_url":"https://api.github.com/repos/primozs/skylines/hooks","issue_events_url":"https://api.github.com/repos/primozs/skylines/issues/events{/number}","events_url":"https://api.github.com/repos/primozs/skylines/events","assignees_url":"https://api.github.com/repos/primozs/skylines/assignees{/user}","branches_url":"https://api.github.com/repos/primozs/skylines/branches{/branch}","tags_url":"https://api.github.com/repos/primozs/skylines/tags","blobs_url":"https://api.github.com/repos/primozs/skylines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/primozs/skylines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/primozs/skylines/git/refs{/sha}","trees_url":"https://api.github.com/repos/primozs/skylines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/primozs/skylines/statuses/{sha}","languages_url":"https://api.github.com/repos/primozs/skylines/languages","stargazers_url":"https://api.github.com/repos/primozs/skylines/stargazers","contributors_url":"https://api.github.com/repos/primozs/skylines/contributors","subscribers_url":"https://api.github.com/repos/primozs/skylines/subscribers","subscription_url":"https://api.github.com/repos/primozs/skylines/subscription","commits_url":"https://api.github.com/repos/primozs/skylines/commits{/sha}","git_commits_url":"https://api.github.com/repos/primozs/skylines/git/commits{/sha}","comments_url":"https://api.github.com/repos/primozs/skylines/comments{/number}","issue_comment_url":"https://api.github.com/repos/primozs/skylines/issues/comments{/number}","contents_url":"https://api.github.com/repos/primozs/skylines/contents/{+path}","compare_url":"https://api.github.com/repos/primozs/skylines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/primozs/skylines/merges","archive_url":"https://api.github.com/repos/primozs/skylines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/primozs/skylines/downloads","issues_url":"https://api.github.com/repos/primozs/skylines/issues{/number}","pulls_url":"https://api.github.com/repos/primozs/skylines/pulls{/number}","milestones_url":"https://api.github.com/repos/primozs/skylines/milestones{/number}","notifications_url":"https://api.github.com/repos/primozs/skylines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/primozs/skylines/labels{/name}","releases_url":"https://api.github.com/repos/primozs/skylines/releases{/id}","created_at":"2014-10-02T13:48:43Z","updated_at":"2015-03-08T20:22:22Z","pushed_at":"2015-03-08T20:23:40Z","git_url":"git://github.com/primozs/skylines.git","ssh_url":"git@github.com:primozs/skylines.git","clone_url":"https://github.com/primozs/skylines.git","svn_url":"https://github.com/primozs/skylines","homepage":"http://www.skylines-project.org/","size":10771,"stargazers_count":0,"watchers_count":0,"language":"Gettext Catalog","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"skylines-project:master","ref":"master","sha":"069e60acaf9bed1b0b9fdf74a3ad1408074b2424","user":{"login":"skylines-project","id":3816030,"avatar_url":"https://avatars.githubusercontent.com/u/3816030?v=3","gravatar_id":"","url":"https://api.github.com/users/skylines-project","html_url":"https://github.com/skylines-project","followers_url":"https://api.github.com/users/skylines-project/followers","following_url":"https://api.github.com/users/skylines-project/following{/other_user}","gists_url":"https://api.github.com/users/skylines-project/gists{/gist_id}","starred_url":"https://api.github.com/users/skylines-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skylines-project/subscriptions","organizations_url":"https://api.github.com/users/skylines-project/orgs","repos_url":"https://api.github.com/users/skylines-project/repos","events_url":"https://api.github.com/users/skylines-project/events{/privacy}","received_events_url":"https://api.github.com/users/skylines-project/received_events","type":"Organization","site_admin":false},"repo":{"id":3056468,"name":"skylines","full_name":"skylines-project/skylines","owner":{"login":"skylines-project","id":3816030,"avatar_url":"https://avatars.githubusercontent.com/u/3816030?v=3","gravatar_id":"","url":"https://api.github.com/users/skylines-project","html_url":"https://github.com/skylines-project","followers_url":"https://api.github.com/users/skylines-project/followers","following_url":"https://api.github.com/users/skylines-project/following{/other_user}","gists_url":"https://api.github.com/users/skylines-project/gists{/gist_id}","starred_url":"https://api.github.com/users/skylines-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skylines-project/subscriptions","organizations_url":"https://api.github.com/users/skylines-project/orgs","repos_url":"https://api.github.com/users/skylines-project/repos","events_url":"https://api.github.com/users/skylines-project/events{/privacy}","received_events_url":"https://api.github.com/users/skylines-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/skylines-project/skylines","description":"Live tracking, flight database and competition framework","fork":false,"url":"https://api.github.com/repos/skylines-project/skylines","forks_url":"https://api.github.com/repos/skylines-project/skylines/forks","keys_url":"https://api.github.com/repos/skylines-project/skylines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skylines-project/skylines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skylines-project/skylines/teams","hooks_url":"https://api.github.com/repos/skylines-project/skylines/hooks","issue_events_url":"https://api.github.com/repos/skylines-project/skylines/issues/events{/number}","events_url":"https://api.github.com/repos/skylines-project/skylines/events","assignees_url":"https://api.github.com/repos/skylines-project/skylines/assignees{/user}","branches_url":"https://api.github.com/repos/skylines-project/skylines/branches{/branch}","tags_url":"https://api.github.com/repos/skylines-project/skylines/tags","blobs_url":"https://api.github.com/repos/skylines-project/skylines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skylines-project/skylines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skylines-project/skylines/git/refs{/sha}","trees_url":"https://api.github.com/repos/skylines-project/skylines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skylines-project/skylines/statuses/{sha}","languages_url":"https://api.github.com/repos/skylines-project/skylines/languages","stargazers_url":"https://api.github.com/repos/skylines-project/skylines/stargazers","contributors_url":"https://api.github.com/repos/skylines-project/skylines/contributors","subscribers_url":"https://api.github.com/repos/skylines-project/skylines/subscribers","subscription_url":"https://api.github.com/repos/skylines-project/skylines/subscription","commits_url":"https://api.github.com/repos/skylines-project/skylines/commits{/sha}","git_commits_url":"https://api.github.com/repos/skylines-project/skylines/git/commits{/sha}","comments_url":"https://api.github.com/repos/skylines-project/skylines/comments{/number}","issue_comment_url":"https://api.github.com/repos/skylines-project/skylines/issues/comments{/number}","contents_url":"https://api.github.com/repos/skylines-project/skylines/contents/{+path}","compare_url":"https://api.github.com/repos/skylines-project/skylines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skylines-project/skylines/merges","archive_url":"https://api.github.com/repos/skylines-project/skylines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skylines-project/skylines/downloads","issues_url":"https://api.github.com/repos/skylines-project/skylines/issues{/number}","pulls_url":"https://api.github.com/repos/skylines-project/skylines/pulls{/number}","milestones_url":"https://api.github.com/repos/skylines-project/skylines/milestones{/number}","notifications_url":"https://api.github.com/repos/skylines-project/skylines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skylines-project/skylines/labels{/name}","releases_url":"https://api.github.com/repos/skylines-project/skylines/releases{/id}","created_at":"2011-12-27T12:33:23Z","updated_at":"2015-04-20T23:06:31Z","pushed_at":"2015-04-16T15:41:27Z","git_url":"git://github.com/skylines-project/skylines.git","ssh_url":"git@github.com:skylines-project/skylines.git","clone_url":"https://github.com/skylines-project/skylines.git","svn_url":"https://github.com/skylines-project/skylines","homepage":"http://www.skylines-project.org/","size":14932,"stargazers_count":38,"watchers_count":38,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":64,"forks":27,"open_issues":64,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skylines-project/skylines/pulls/382"},"html":{"href":"https://github.com/skylines-project/skylines/pull/382"},"issue":{"href":"https://api.github.com/repos/skylines-project/skylines/issues/382"},"comments":{"href":"https://api.github.com/repos/skylines-project/skylines/issues/382/comments"},"review_comments":{"href":"https://api.github.com/repos/skylines-project/skylines/pulls/382/comments"},"review_comment":{"href":"https://api.github.com/repos/skylines-project/skylines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skylines-project/skylines/pulls/382/commits"},"statuses":{"href":"https://api.github.com/repos/skylines-project/skylines/statuses/0d989e3e4f4f007d70825a311ce717e154f86dc8"}}}}