{"action":"created","comment":{"url":"https://api.github.com/repos/seadsystem/Backend/pulls/comments/45829582","id":45829582,"diff_hunk":"@@ -9,230 +10,318 @@\n \n \n def query(parsed_url):\n-\t\"\"\"","path":"DB/api/db.py","position":9,"original_position":9,"commit_id":"80becf766e53eaeab75197369cbb0e1a6e951dc2","original_commit_id":"80becf766e53eaeab75197369cbb0e1a6e951dc2","user":{"login":"iangudger","id":7056530,"avatar_url":"https://avatars.githubusercontent.com/u/7056530?v=3","gravatar_id":"","url":"https://api.github.com/users/iangudger","html_url":"https://github.com/iangudger","followers_url":"https://api.github.com/users/iangudger/followers","following_url":"https://api.github.com/users/iangudger/following{/other_user}","gists_url":"https://api.github.com/users/iangudger/gists{/gist_id}","starred_url":"https://api.github.com/users/iangudger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangudger/subscriptions","organizations_url":"https://api.github.com/users/iangudger/orgs","repos_url":"https://api.github.com/users/iangudger/repos","events_url":"https://api.github.com/users/iangudger/events{/privacy}","received_events_url":"https://api.github.com/users/iangudger/received_events","type":"User","site_admin":false},"body":"The API uses tabs. Please leave it as is.","created_at":"2015-11-25T04:57:00Z","updated_at":"2015-11-25T04:57:00Z","html_url":"https://github.com/seadsystem/Backend/pull/14#discussion_r45829582","pull_request_url":"https://api.github.com/repos/seadsystem/Backend/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/seadsystem/Backend/pulls/comments/45829582"},"html":{"href":"https://github.com/seadsystem/Backend/pull/14#discussion_r45829582"},"pull_request":{"href":"https://api.github.com/repos/seadsystem/Backend/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/seadsystem/Backend/pulls/14","id":51752033,"html_url":"https://github.com/seadsystem/Backend/pull/14","diff_url":"https://github.com/seadsystem/Backend/pull/14.diff","patch_url":"https://github.com/seadsystem/Backend/pull/14.patch","issue_url":"https://api.github.com/repos/seadsystem/Backend/issues/14","number":14,"state":"open","locked":false,"title":"two new api endpoinst","user":{"login":"ianlofs","id":5983821,"avatar_url":"https://avatars.githubusercontent.com/u/5983821?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlofs","html_url":"https://github.com/ianlofs","followers_url":"https://api.github.com/users/ianlofs/followers","following_url":"https://api.github.com/users/ianlofs/following{/other_user}","gists_url":"https://api.github.com/users/ianlofs/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlofs/subscriptions","organizations_url":"https://api.github.com/users/ianlofs/orgs","repos_url":"https://api.github.com/users/ianlofs/repos","events_url":"https://api.github.com/users/ianlofs/events{/privacy}","received_events_url":"https://api.github.com/users/ianlofs/received_events","type":"User","site_admin":false},"body":"`/<device_id>/total_energy`\r\nAdds support for querying the total energy usage in during a certain time period\r\n\r\n/<device_id>/energy_list \r\nAdds support for querying a list of energy usage where each value is the energy used in some interval between some start and end points. \r\n\r\nP.S. converted tabs to spaces per PEP8","created_at":"2015-11-25T04:41:40Z","updated_at":"2015-11-25T04:57:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c2286b9ccc022e4d0973a7882aceefbc4a31cc0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/seadsystem/Backend/pulls/14/commits","review_comments_url":"https://api.github.com/repos/seadsystem/Backend/pulls/14/comments","review_comment_url":"https://api.github.com/repos/seadsystem/Backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seadsystem/Backend/issues/14/comments","statuses_url":"https://api.github.com/repos/seadsystem/Backend/statuses/80becf766e53eaeab75197369cbb0e1a6e951dc2","head":{"label":"seadsystem:new-api-endpoints","ref":"new-api-endpoints","sha":"80becf766e53eaeab75197369cbb0e1a6e951dc2","user":{"login":"seadsystem","id":7507257,"avatar_url":"https://avatars.githubusercontent.com/u/7507257?v=3","gravatar_id":"","url":"https://api.github.com/users/seadsystem","html_url":"https://github.com/seadsystem","followers_url":"https://api.github.com/users/seadsystem/followers","following_url":"https://api.github.com/users/seadsystem/following{/other_user}","gists_url":"https://api.github.com/users/seadsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/seadsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadsystem/subscriptions","organizations_url":"https://api.github.com/users/seadsystem/orgs","repos_url":"https://api.github.com/users/seadsystem/repos","events_url":"https://api.github.com/users/seadsystem/events{/privacy}","received_events_url":"https://api.github.com/users/seadsystem/received_events","type":"Organization","site_admin":false},"repo":{"id":25625102,"name":"Backend","full_name":"seadsystem/Backend","owner":{"login":"seadsystem","id":7507257,"avatar_url":"https://avatars.githubusercontent.com/u/7507257?v=3","gravatar_id":"","url":"https://api.github.com/users/seadsystem","html_url":"https://github.com/seadsystem","followers_url":"https://api.github.com/users/seadsystem/followers","following_url":"https://api.github.com/users/seadsystem/following{/other_user}","gists_url":"https://api.github.com/users/seadsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/seadsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadsystem/subscriptions","organizations_url":"https://api.github.com/users/seadsystem/orgs","repos_url":"https://api.github.com/users/seadsystem/repos","events_url":"https://api.github.com/users/seadsystem/events{/privacy}","received_events_url":"https://api.github.com/users/seadsystem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seadsystem/Backend","description":"","fork":false,"url":"https://api.github.com/repos/seadsystem/Backend","forks_url":"https://api.github.com/repos/seadsystem/Backend/forks","keys_url":"https://api.github.com/repos/seadsystem/Backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seadsystem/Backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seadsystem/Backend/teams","hooks_url":"https://api.github.com/repos/seadsystem/Backend/hooks","issue_events_url":"https://api.github.com/repos/seadsystem/Backend/issues/events{/number}","events_url":"https://api.github.com/repos/seadsystem/Backend/events","assignees_url":"https://api.github.com/repos/seadsystem/Backend/assignees{/user}","branches_url":"https://api.github.com/repos/seadsystem/Backend/branches{/branch}","tags_url":"https://api.github.com/repos/seadsystem/Backend/tags","blobs_url":"https://api.github.com/repos/seadsystem/Backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seadsystem/Backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seadsystem/Backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/seadsystem/Backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seadsystem/Backend/statuses/{sha}","languages_url":"https://api.github.com/repos/seadsystem/Backend/languages","stargazers_url":"https://api.github.com/repos/seadsystem/Backend/stargazers","contributors_url":"https://api.github.com/repos/seadsystem/Backend/contributors","subscribers_url":"https://api.github.com/repos/seadsystem/Backend/subscribers","subscription_url":"https://api.github.com/repos/seadsystem/Backend/subscription","commits_url":"https://api.github.com/repos/seadsystem/Backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/seadsystem/Backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/seadsystem/Backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/seadsystem/Backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/seadsystem/Backend/contents/{+path}","compare_url":"https://api.github.com/repos/seadsystem/Backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seadsystem/Backend/merges","archive_url":"https://api.github.com/repos/seadsystem/Backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seadsystem/Backend/downloads","issues_url":"https://api.github.com/repos/seadsystem/Backend/issues{/number}","pulls_url":"https://api.github.com/repos/seadsystem/Backend/pulls{/number}","milestones_url":"https://api.github.com/repos/seadsystem/Backend/milestones{/number}","notifications_url":"https://api.github.com/repos/seadsystem/Backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seadsystem/Backend/labels{/name}","releases_url":"https://api.github.com/repos/seadsystem/Backend/releases{/id}","created_at":"2014-10-23T07:34:08Z","updated_at":"2015-04-21T00:52:46Z","pushed_at":"2015-11-25T04:41:41Z","git_url":"git://github.com/seadsystem/Backend.git","ssh_url":"git@github.com:seadsystem/Backend.git","clone_url":"https://github.com/seadsystem/Backend.git","svn_url":"https://github.com/seadsystem/Backend","homepage":null,"size":74867,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"seadsystem:master","ref":"master","sha":"e23ce99e140824a0e053b4ba99e31cfb67d2fefa","user":{"login":"seadsystem","id":7507257,"avatar_url":"https://avatars.githubusercontent.com/u/7507257?v=3","gravatar_id":"","url":"https://api.github.com/users/seadsystem","html_url":"https://github.com/seadsystem","followers_url":"https://api.github.com/users/seadsystem/followers","following_url":"https://api.github.com/users/seadsystem/following{/other_user}","gists_url":"https://api.github.com/users/seadsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/seadsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadsystem/subscriptions","organizations_url":"https://api.github.com/users/seadsystem/orgs","repos_url":"https://api.github.com/users/seadsystem/repos","events_url":"https://api.github.com/users/seadsystem/events{/privacy}","received_events_url":"https://api.github.com/users/seadsystem/received_events","type":"Organization","site_admin":false},"repo":{"id":25625102,"name":"Backend","full_name":"seadsystem/Backend","owner":{"login":"seadsystem","id":7507257,"avatar_url":"https://avatars.githubusercontent.com/u/7507257?v=3","gravatar_id":"","url":"https://api.github.com/users/seadsystem","html_url":"https://github.com/seadsystem","followers_url":"https://api.github.com/users/seadsystem/followers","following_url":"https://api.github.com/users/seadsystem/following{/other_user}","gists_url":"https://api.github.com/users/seadsystem/gists{/gist_id}","starred_url":"https://api.github.com/users/seadsystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadsystem/subscriptions","organizations_url":"https://api.github.com/users/seadsystem/orgs","repos_url":"https://api.github.com/users/seadsystem/repos","events_url":"https://api.github.com/users/seadsystem/events{/privacy}","received_events_url":"https://api.github.com/users/seadsystem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/seadsystem/Backend","description":"","fork":false,"url":"https://api.github.com/repos/seadsystem/Backend","forks_url":"https://api.github.com/repos/seadsystem/Backend/forks","keys_url":"https://api.github.com/repos/seadsystem/Backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seadsystem/Backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seadsystem/Backend/teams","hooks_url":"https://api.github.com/repos/seadsystem/Backend/hooks","issue_events_url":"https://api.github.com/repos/seadsystem/Backend/issues/events{/number}","events_url":"https://api.github.com/repos/seadsystem/Backend/events","assignees_url":"https://api.github.com/repos/seadsystem/Backend/assignees{/user}","branches_url":"https://api.github.com/repos/seadsystem/Backend/branches{/branch}","tags_url":"https://api.github.com/repos/seadsystem/Backend/tags","blobs_url":"https://api.github.com/repos/seadsystem/Backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seadsystem/Backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seadsystem/Backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/seadsystem/Backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seadsystem/Backend/statuses/{sha}","languages_url":"https://api.github.com/repos/seadsystem/Backend/languages","stargazers_url":"https://api.github.com/repos/seadsystem/Backend/stargazers","contributors_url":"https://api.github.com/repos/seadsystem/Backend/contributors","subscribers_url":"https://api.github.com/repos/seadsystem/Backend/subscribers","subscription_url":"https://api.github.com/repos/seadsystem/Backend/subscription","commits_url":"https://api.github.com/repos/seadsystem/Backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/seadsystem/Backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/seadsystem/Backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/seadsystem/Backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/seadsystem/Backend/contents/{+path}","compare_url":"https://api.github.com/repos/seadsystem/Backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seadsystem/Backend/merges","archive_url":"https://api.github.com/repos/seadsystem/Backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seadsystem/Backend/downloads","issues_url":"https://api.github.com/repos/seadsystem/Backend/issues{/number}","pulls_url":"https://api.github.com/repos/seadsystem/Backend/pulls{/number}","milestones_url":"https://api.github.com/repos/seadsystem/Backend/milestones{/number}","notifications_url":"https://api.github.com/repos/seadsystem/Backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seadsystem/Backend/labels{/name}","releases_url":"https://api.github.com/repos/seadsystem/Backend/releases{/id}","created_at":"2014-10-23T07:34:08Z","updated_at":"2015-04-21T00:52:46Z","pushed_at":"2015-11-25T04:41:41Z","git_url":"git://github.com/seadsystem/Backend.git","ssh_url":"git@github.com:seadsystem/Backend.git","clone_url":"https://github.com/seadsystem/Backend.git","svn_url":"https://github.com/seadsystem/Backend","homepage":null,"size":74867,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seadsystem/Backend/pulls/14"},"html":{"href":"https://github.com/seadsystem/Backend/pull/14"},"issue":{"href":"https://api.github.com/repos/seadsystem/Backend/issues/14"},"comments":{"href":"https://api.github.com/repos/seadsystem/Backend/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/seadsystem/Backend/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/seadsystem/Backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seadsystem/Backend/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/seadsystem/Backend/statuses/80becf766e53eaeab75197369cbb0e1a6e951dc2"}}}}