{"action":"created","comment":{"url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/comments/77122359","id":77122359,"diff_hunk":"@@ -334,7 +338,18 @@ def get_safety_profile(geo_code, geo_level, session):\n     property_crimes_by_year = crimes_by_year['Property crime']\n     property_crimes_by_year['metadata'] = crimes_by_year['metadata']\n \n+    contact_crimes_per_10k_pop = contact_crimes_by_year['2014']['values']['this'] / pop_total * 10000\n+    property_crimes_per_10k_pop = property_crimes_by_year['2014']['values']['this'] / pop_total * 10000\n+\n     final_data = {\n+        'contact_crimes_per_10k_pop': {\n+            \"name\": \"Contact crimes per 10,000 population reported in 2013/2014\",","path":"wazimap_za/profiles/youth.py","position":20,"original_position":20,"commit_id":"0b43e07cc40ef26ec05d6e220ea12f6c34cdfb09","original_commit_id":"4595f2b2d843de491b1c8e0997f6c46ece9e0ba1","user":{"login":"xybrnet","id":11753432,"avatar_url":"https://avatars.githubusercontent.com/u/11753432?v=3","gravatar_id":"","url":"https://api.github.com/users/xybrnet","html_url":"https://github.com/xybrnet","followers_url":"https://api.github.com/users/xybrnet/followers","following_url":"https://api.github.com/users/xybrnet/following{/other_user}","gists_url":"https://api.github.com/users/xybrnet/gists{/gist_id}","starred_url":"https://api.github.com/users/xybrnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xybrnet/subscriptions","organizations_url":"https://api.github.com/users/xybrnet/orgs","repos_url":"https://api.github.com/users/xybrnet/repos","events_url":"https://api.github.com/users/xybrnet/events{/privacy}","received_events_url":"https://api.github.com/users/xybrnet/received_events","type":"User","site_admin":false},"body":"Cool, I did check. It should be total population.","created_at":"2016-09-01T06:54:01Z","updated_at":"2016-09-01T06:54:01Z","html_url":"https://github.com/Code4SA/wazimap-za/pull/93#discussion_r77122359","pull_request_url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/comments/77122359"},"html":{"href":"https://github.com/Code4SA/wazimap-za/pull/93#discussion_r77122359"},"pull_request":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93","id":83439385,"html_url":"https://github.com/Code4SA/wazimap-za/pull/93","diff_url":"https://github.com/Code4SA/wazimap-za/pull/93.diff","patch_url":"https://github.com/Code4SA/wazimap-za/pull/93.patch","issue_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues/93","number":93,"state":"open","locked":false,"title":"Crime rates per 10000","user":{"login":"xybrnet","id":11753432,"avatar_url":"https://avatars.githubusercontent.com/u/11753432?v=3","gravatar_id":"","url":"https://api.github.com/users/xybrnet","html_url":"https://github.com/xybrnet","followers_url":"https://api.github.com/users/xybrnet/followers","following_url":"https://api.github.com/users/xybrnet/following{/other_user}","gists_url":"https://api.github.com/users/xybrnet/gists{/gist_id}","starred_url":"https://api.github.com/users/xybrnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xybrnet/subscriptions","organizations_url":"https://api.github.com/users/xybrnet/orgs","repos_url":"https://api.github.com/users/xybrnet/repos","events_url":"https://api.github.com/users/xybrnet/events{/privacy}","received_events_url":"https://api.github.com/users/xybrnet/received_events","type":"User","site_admin":false},"body":"@longhotsummer\r\n\r\nThis branch was created off the previous pull-request.","created_at":"2016-08-31T12:04:01Z","updated_at":"2016-09-01T06:54:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e7fa4fd29e71e9bdacdac64f719730d78228e93","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93/commits","review_comments_url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93/comments","review_comment_url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues/93/comments","statuses_url":"https://api.github.com/repos/Code4SA/wazimap-za/statuses/0b43e07cc40ef26ec05d6e220ea12f6c34cdfb09","head":{"label":"Code4SA:crime-rates-per-10000","ref":"crime-rates-per-10000","sha":"0b43e07cc40ef26ec05d6e220ea12f6c34cdfb09","user":{"login":"Code4SA","id":4387576,"avatar_url":"https://avatars.githubusercontent.com/u/4387576?v=3","gravatar_id":"","url":"https://api.github.com/users/Code4SA","html_url":"https://github.com/Code4SA","followers_url":"https://api.github.com/users/Code4SA/followers","following_url":"https://api.github.com/users/Code4SA/following{/other_user}","gists_url":"https://api.github.com/users/Code4SA/gists{/gist_id}","starred_url":"https://api.github.com/users/Code4SA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Code4SA/subscriptions","organizations_url":"https://api.github.com/users/Code4SA/orgs","repos_url":"https://api.github.com/users/Code4SA/repos","events_url":"https://api.github.com/users/Code4SA/events{/privacy}","received_events_url":"https://api.github.com/users/Code4SA/received_events","type":"Organization","site_admin":false},"repo":{"id":52872393,"name":"wazimap-za","full_name":"Code4SA/wazimap-za","owner":{"login":"Code4SA","id":4387576,"avatar_url":"https://avatars.githubusercontent.com/u/4387576?v=3","gravatar_id":"","url":"https://api.github.com/users/Code4SA","html_url":"https://github.com/Code4SA","followers_url":"https://api.github.com/users/Code4SA/followers","following_url":"https://api.github.com/users/Code4SA/following{/other_user}","gists_url":"https://api.github.com/users/Code4SA/gists{/gist_id}","starred_url":"https://api.github.com/users/Code4SA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Code4SA/subscriptions","organizations_url":"https://api.github.com/users/Code4SA/orgs","repos_url":"https://api.github.com/users/Code4SA/repos","events_url":"https://api.github.com/users/Code4SA/events{/privacy}","received_events_url":"https://api.github.com/users/Code4SA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Code4SA/wazimap-za","description":"The ZA implementation of Wazimap, a Django application for exploring census and other similar data","fork":false,"url":"https://api.github.com/repos/Code4SA/wazimap-za","forks_url":"https://api.github.com/repos/Code4SA/wazimap-za/forks","keys_url":"https://api.github.com/repos/Code4SA/wazimap-za/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Code4SA/wazimap-za/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Code4SA/wazimap-za/teams","hooks_url":"https://api.github.com/repos/Code4SA/wazimap-za/hooks","issue_events_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues/events{/number}","events_url":"https://api.github.com/repos/Code4SA/wazimap-za/events","assignees_url":"https://api.github.com/repos/Code4SA/wazimap-za/assignees{/user}","branches_url":"https://api.github.com/repos/Code4SA/wazimap-za/branches{/branch}","tags_url":"https://api.github.com/repos/Code4SA/wazimap-za/tags","blobs_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/refs{/sha}","trees_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Code4SA/wazimap-za/statuses/{sha}","languages_url":"https://api.github.com/repos/Code4SA/wazimap-za/languages","stargazers_url":"https://api.github.com/repos/Code4SA/wazimap-za/stargazers","contributors_url":"https://api.github.com/repos/Code4SA/wazimap-za/contributors","subscribers_url":"https://api.github.com/repos/Code4SA/wazimap-za/subscribers","subscription_url":"https://api.github.com/repos/Code4SA/wazimap-za/subscription","commits_url":"https://api.github.com/repos/Code4SA/wazimap-za/commits{/sha}","git_commits_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/commits{/sha}","comments_url":"https://api.github.com/repos/Code4SA/wazimap-za/comments{/number}","issue_comment_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues/comments{/number}","contents_url":"https://api.github.com/repos/Code4SA/wazimap-za/contents/{+path}","compare_url":"https://api.github.com/repos/Code4SA/wazimap-za/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Code4SA/wazimap-za/merges","archive_url":"https://api.github.com/repos/Code4SA/wazimap-za/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Code4SA/wazimap-za/downloads","issues_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues{/number}","pulls_url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls{/number}","milestones_url":"https://api.github.com/repos/Code4SA/wazimap-za/milestones{/number}","notifications_url":"https://api.github.com/repos/Code4SA/wazimap-za/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Code4SA/wazimap-za/labels{/name}","releases_url":"https://api.github.com/repos/Code4SA/wazimap-za/releases{/id}","deployments_url":"https://api.github.com/repos/Code4SA/wazimap-za/deployments","created_at":"2016-03-01T11:37:37Z","updated_at":"2016-07-20T11:35:54Z","pushed_at":"2016-09-01T06:51:36Z","git_url":"git://github.com/Code4SA/wazimap-za.git","ssh_url":"git@github.com:Code4SA/wazimap-za.git","clone_url":"https://github.com/Code4SA/wazimap-za.git","svn_url":"https://github.com/Code4SA/wazimap-za","homepage":"http://wazimap.co.za","size":33448,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Code4SA:master","ref":"master","sha":"bbab8fcd3bdac958bbc383560482ebe24c5c0826","user":{"login":"Code4SA","id":4387576,"avatar_url":"https://avatars.githubusercontent.com/u/4387576?v=3","gravatar_id":"","url":"https://api.github.com/users/Code4SA","html_url":"https://github.com/Code4SA","followers_url":"https://api.github.com/users/Code4SA/followers","following_url":"https://api.github.com/users/Code4SA/following{/other_user}","gists_url":"https://api.github.com/users/Code4SA/gists{/gist_id}","starred_url":"https://api.github.com/users/Code4SA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Code4SA/subscriptions","organizations_url":"https://api.github.com/users/Code4SA/orgs","repos_url":"https://api.github.com/users/Code4SA/repos","events_url":"https://api.github.com/users/Code4SA/events{/privacy}","received_events_url":"https://api.github.com/users/Code4SA/received_events","type":"Organization","site_admin":false},"repo":{"id":52872393,"name":"wazimap-za","full_name":"Code4SA/wazimap-za","owner":{"login":"Code4SA","id":4387576,"avatar_url":"https://avatars.githubusercontent.com/u/4387576?v=3","gravatar_id":"","url":"https://api.github.com/users/Code4SA","html_url":"https://github.com/Code4SA","followers_url":"https://api.github.com/users/Code4SA/followers","following_url":"https://api.github.com/users/Code4SA/following{/other_user}","gists_url":"https://api.github.com/users/Code4SA/gists{/gist_id}","starred_url":"https://api.github.com/users/Code4SA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Code4SA/subscriptions","organizations_url":"https://api.github.com/users/Code4SA/orgs","repos_url":"https://api.github.com/users/Code4SA/repos","events_url":"https://api.github.com/users/Code4SA/events{/privacy}","received_events_url":"https://api.github.com/users/Code4SA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Code4SA/wazimap-za","description":"The ZA implementation of Wazimap, a Django application for exploring census and other similar data","fork":false,"url":"https://api.github.com/repos/Code4SA/wazimap-za","forks_url":"https://api.github.com/repos/Code4SA/wazimap-za/forks","keys_url":"https://api.github.com/repos/Code4SA/wazimap-za/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Code4SA/wazimap-za/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Code4SA/wazimap-za/teams","hooks_url":"https://api.github.com/repos/Code4SA/wazimap-za/hooks","issue_events_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues/events{/number}","events_url":"https://api.github.com/repos/Code4SA/wazimap-za/events","assignees_url":"https://api.github.com/repos/Code4SA/wazimap-za/assignees{/user}","branches_url":"https://api.github.com/repos/Code4SA/wazimap-za/branches{/branch}","tags_url":"https://api.github.com/repos/Code4SA/wazimap-za/tags","blobs_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/refs{/sha}","trees_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Code4SA/wazimap-za/statuses/{sha}","languages_url":"https://api.github.com/repos/Code4SA/wazimap-za/languages","stargazers_url":"https://api.github.com/repos/Code4SA/wazimap-za/stargazers","contributors_url":"https://api.github.com/repos/Code4SA/wazimap-za/contributors","subscribers_url":"https://api.github.com/repos/Code4SA/wazimap-za/subscribers","subscription_url":"https://api.github.com/repos/Code4SA/wazimap-za/subscription","commits_url":"https://api.github.com/repos/Code4SA/wazimap-za/commits{/sha}","git_commits_url":"https://api.github.com/repos/Code4SA/wazimap-za/git/commits{/sha}","comments_url":"https://api.github.com/repos/Code4SA/wazimap-za/comments{/number}","issue_comment_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues/comments{/number}","contents_url":"https://api.github.com/repos/Code4SA/wazimap-za/contents/{+path}","compare_url":"https://api.github.com/repos/Code4SA/wazimap-za/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Code4SA/wazimap-za/merges","archive_url":"https://api.github.com/repos/Code4SA/wazimap-za/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Code4SA/wazimap-za/downloads","issues_url":"https://api.github.com/repos/Code4SA/wazimap-za/issues{/number}","pulls_url":"https://api.github.com/repos/Code4SA/wazimap-za/pulls{/number}","milestones_url":"https://api.github.com/repos/Code4SA/wazimap-za/milestones{/number}","notifications_url":"https://api.github.com/repos/Code4SA/wazimap-za/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Code4SA/wazimap-za/labels{/name}","releases_url":"https://api.github.com/repos/Code4SA/wazimap-za/releases{/id}","deployments_url":"https://api.github.com/repos/Code4SA/wazimap-za/deployments","created_at":"2016-03-01T11:37:37Z","updated_at":"2016-07-20T11:35:54Z","pushed_at":"2016-09-01T06:51:36Z","git_url":"git://github.com/Code4SA/wazimap-za.git","ssh_url":"git@github.com:Code4SA/wazimap-za.git","clone_url":"https://github.com/Code4SA/wazimap-za.git","svn_url":"https://github.com/Code4SA/wazimap-za","homepage":"http://wazimap.co.za","size":33448,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93"},"html":{"href":"https://github.com/Code4SA/wazimap-za/pull/93"},"issue":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/issues/93"},"comments":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/Code4SA/wazimap-za/statuses/0b43e07cc40ef26ec05d6e220ea12f6c34cdfb09"}}}}
{"actor":{"display_login":"xybrnet"}}