{"action":"created","comment":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/90608976","pull_request_review_id":11127246,"id":90608976,"diff_hunk":"@@ -2821,36 +2855,72 @@ function aggregator_payment_sheet(data_json, aggregator) {\n             for (var j = 0; j < data_set.length; j++) {\n                 if (data_set[j].indexOf(payments_gaddidar_contribution[i]['date']) != -1 && data_set[j].indexOf(payments_gaddidar_contribution[i]['mandi__name']) != -1) {\n                     data_set[j][8] += parseFloat(payments_gaddidar_contribution[i]['amount']);\n-                    data_set[j][9] = (data_set[j][9] - parseFloat(payments_gaddidar_contribution[i]['amount'])).toFixed(2);\n+                    data_set[j][9] = parseFloat((data_set[j][9] - parseFloat(payments_gaddidar_contribution[i]['amount'])).toFixed(2));\n                     break;\n                 }\n             }\n         }\n     }\n \n+\n+    \n+\n+    var formatVal = function (yourNumber) {\n+    //Seperates the components of the number\n+        var n= yourNumber.toString().split(\".\");\n+    //Comma-fies the first part\n+        if(n[0])\n+            {\n+                n[0] = n[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");","path":"dg/media/app_dashboards/js/loop_dashboard.js","position":118,"original_position":116,"commit_id":"afed65d1048048db520bda2df968e5bb22d5891e","original_commit_id":"773ba204e3ad2537a4d4a403dc90e93ed0fbeacb","user":{"login":"jediknightpython","id":9623327,"avatar_url":"https://avatars.githubusercontent.com/u/9623327?v=3","gravatar_id":"","url":"https://api.github.com/users/jediknightpython","html_url":"https://github.com/jediknightpython","followers_url":"https://api.github.com/users/jediknightpython/followers","following_url":"https://api.github.com/users/jediknightpython/following{/other_user}","gists_url":"https://api.github.com/users/jediknightpython/gists{/gist_id}","starred_url":"https://api.github.com/users/jediknightpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jediknightpython/subscriptions","organizations_url":"https://api.github.com/users/jediknightpython/orgs","repos_url":"https://api.github.com/users/jediknightpython/repos","events_url":"https://api.github.com/users/jediknightpython/events{/privacy}","received_events_url":"https://api.github.com/users/jediknightpython/received_events","type":"User","site_admin":false},"body":"regex for putting comma separators for numbers of form 1156 -> 1,156","created_at":"2016-12-02T09:19:24Z","updated_at":"2016-12-02T09:19:24Z","html_url":"https://github.com/digitalgreenorg/dg/pull/629#discussion_r90608976","pull_request_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629","_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/90608976"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/629#discussion_r90608976"},"pull_request":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629"}}},"pull_request":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629","id":96229231,"html_url":"https://github.com/digitalgreenorg/dg/pull/629","diff_url":"https://github.com/digitalgreenorg/dg/pull/629.diff","patch_url":"https://github.com/digitalgreenorg/dg/pull/629.patch","issue_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/629","number":629,"state":"open","locked":false,"title":"Loop dashboard payment sheet changes","user":{"login":"jediknightpython","id":9623327,"avatar_url":"https://avatars.githubusercontent.com/u/9623327?v=3","gravatar_id":"","url":"https://api.github.com/users/jediknightpython","html_url":"https://github.com/jediknightpython","followers_url":"https://api.github.com/users/jediknightpython/followers","following_url":"https://api.github.com/users/jediknightpython/following{/other_user}","gists_url":"https://api.github.com/users/jediknightpython/gists{/gist_id}","starred_url":"https://api.github.com/users/jediknightpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jediknightpython/subscriptions","organizations_url":"https://api.github.com/users/jediknightpython/orgs","repos_url":"https://api.github.com/users/jediknightpython/repos","events_url":"https://api.github.com/users/jediknightpython/events{/privacy}","received_events_url":"https://api.github.com/users/jediknightpython/received_events","type":"User","site_admin":false},"body":"excel integration for generation payment sheets: single file downloaded containing multiple sheets\r\nsingle download button for every sheet\r\n","created_at":"2016-12-02T06:39:11Z","updated_at":"2016-12-02T09:19:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d4e285af583644eaff90ae1f3a262734acc0982","assignee":{"login":"lokeshgarg92","id":7338485,"avatar_url":"https://avatars.githubusercontent.com/u/7338485?v=3","gravatar_id":"","url":"https://api.github.com/users/lokeshgarg92","html_url":"https://github.com/lokeshgarg92","followers_url":"https://api.github.com/users/lokeshgarg92/followers","following_url":"https://api.github.com/users/lokeshgarg92/following{/other_user}","gists_url":"https://api.github.com/users/lokeshgarg92/gists{/gist_id}","starred_url":"https://api.github.com/users/lokeshgarg92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokeshgarg92/subscriptions","organizations_url":"https://api.github.com/users/lokeshgarg92/orgs","repos_url":"https://api.github.com/users/lokeshgarg92/repos","events_url":"https://api.github.com/users/lokeshgarg92/events{/privacy}","received_events_url":"https://api.github.com/users/lokeshgarg92/received_events","type":"User","site_admin":false},"assignees":[{"login":"lokeshgarg92","id":7338485,"avatar_url":"https://avatars.githubusercontent.com/u/7338485?v=3","gravatar_id":"","url":"https://api.github.com/users/lokeshgarg92","html_url":"https://github.com/lokeshgarg92","followers_url":"https://api.github.com/users/lokeshgarg92/followers","following_url":"https://api.github.com/users/lokeshgarg92/following{/other_user}","gists_url":"https://api.github.com/users/lokeshgarg92/gists{/gist_id}","starred_url":"https://api.github.com/users/lokeshgarg92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokeshgarg92/subscriptions","organizations_url":"https://api.github.com/users/lokeshgarg92/orgs","repos_url":"https://api.github.com/users/lokeshgarg92/repos","events_url":"https://api.github.com/users/lokeshgarg92/events{/privacy}","received_events_url":"https://api.github.com/users/lokeshgarg92/received_events","type":"User","site_admin":false},{"login":"Abhishek-lodha","id":7737588,"avatar_url":"https://avatars.githubusercontent.com/u/7737588?v=3","gravatar_id":"","url":"https://api.github.com/users/Abhishek-lodha","html_url":"https://github.com/Abhishek-lodha","followers_url":"https://api.github.com/users/Abhishek-lodha/followers","following_url":"https://api.github.com/users/Abhishek-lodha/following{/other_user}","gists_url":"https://api.github.com/users/Abhishek-lodha/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhishek-lodha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhishek-lodha/subscriptions","organizations_url":"https://api.github.com/users/Abhishek-lodha/orgs","repos_url":"https://api.github.com/users/Abhishek-lodha/repos","events_url":"https://api.github.com/users/Abhishek-lodha/events{/privacy}","received_events_url":"https://api.github.com/users/Abhishek-lodha/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629/commits","review_comments_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629/comments","review_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/629/comments","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/afed65d1048048db520bda2df968e5bb22d5891e","head":{"label":"digitalgreenorg:loop_dashboard_payment_sheet_changes","ref":"loop_dashboard_payment_sheet_changes","sha":"afed65d1048048db520bda2df968e5bb22d5891e","user":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars.githubusercontent.com/u/1179852?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"repo":{"id":2742622,"name":"dg","full_name":"digitalgreenorg/dg","owner":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars.githubusercontent.com/u/1179852?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalgreenorg/dg","description":"COCO Analytics Website","fork":false,"url":"https://api.github.com/repos/digitalgreenorg/dg","forks_url":"https://api.github.com/repos/digitalgreenorg/dg/forks","keys_url":"https://api.github.com/repos/digitalgreenorg/dg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalgreenorg/dg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalgreenorg/dg/teams","hooks_url":"https://api.github.com/repos/digitalgreenorg/dg/hooks","issue_events_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/events{/number}","events_url":"https://api.github.com/repos/digitalgreenorg/dg/events","assignees_url":"https://api.github.com/repos/digitalgreenorg/dg/assignees{/user}","branches_url":"https://api.github.com/repos/digitalgreenorg/dg/branches{/branch}","tags_url":"https://api.github.com/repos/digitalgreenorg/dg/tags","blobs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalgreenorg/dg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalgreenorg/dg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalgreenorg/dg/languages","stargazers_url":"https://api.github.com/repos/digitalgreenorg/dg/stargazers","contributors_url":"https://api.github.com/repos/digitalgreenorg/dg/contributors","subscribers_url":"https://api.github.com/repos/digitalgreenorg/dg/subscribers","subscription_url":"https://api.github.com/repos/digitalgreenorg/dg/subscription","commits_url":"https://api.github.com/repos/digitalgreenorg/dg/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalgreenorg/dg/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalgreenorg/dg/contents/{+path}","compare_url":"https://api.github.com/repos/digitalgreenorg/dg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalgreenorg/dg/merges","archive_url":"https://api.github.com/repos/digitalgreenorg/dg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalgreenorg/dg/downloads","issues_url":"https://api.github.com/repos/digitalgreenorg/dg/issues{/number}","pulls_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalgreenorg/dg/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalgreenorg/dg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalgreenorg/dg/labels{/name}","releases_url":"https://api.github.com/repos/digitalgreenorg/dg/releases{/id}","deployments_url":"https://api.github.com/repos/digitalgreenorg/dg/deployments","created_at":"2011-11-09T16:04:45Z","updated_at":"2016-10-28T05:20:01Z","pushed_at":"2016-12-02T08:47:15Z","git_url":"git://github.com/digitalgreenorg/dg.git","ssh_url":"git@github.com:digitalgreenorg/dg.git","clone_url":"https://github.com/digitalgreenorg/dg.git","svn_url":"https://github.com/digitalgreenorg/dg","homepage":"","size":472797,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":20,"forks":6,"open_issues":20,"watchers":11,"default_branch":"master"}},"base":{"label":"digitalgreenorg:master","ref":"master","sha":"41f70b90427a4c94cbbe6f4306d2f82c4dd68dc3","user":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars.githubusercontent.com/u/1179852?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"repo":{"id":2742622,"name":"dg","full_name":"digitalgreenorg/dg","owner":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars.githubusercontent.com/u/1179852?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalgreenorg/dg","description":"COCO Analytics Website","fork":false,"url":"https://api.github.com/repos/digitalgreenorg/dg","forks_url":"https://api.github.com/repos/digitalgreenorg/dg/forks","keys_url":"https://api.github.com/repos/digitalgreenorg/dg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalgreenorg/dg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalgreenorg/dg/teams","hooks_url":"https://api.github.com/repos/digitalgreenorg/dg/hooks","issue_events_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/events{/number}","events_url":"https://api.github.com/repos/digitalgreenorg/dg/events","assignees_url":"https://api.github.com/repos/digitalgreenorg/dg/assignees{/user}","branches_url":"https://api.github.com/repos/digitalgreenorg/dg/branches{/branch}","tags_url":"https://api.github.com/repos/digitalgreenorg/dg/tags","blobs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalgreenorg/dg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalgreenorg/dg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalgreenorg/dg/languages","stargazers_url":"https://api.github.com/repos/digitalgreenorg/dg/stargazers","contributors_url":"https://api.github.com/repos/digitalgreenorg/dg/contributors","subscribers_url":"https://api.github.com/repos/digitalgreenorg/dg/subscribers","subscription_url":"https://api.github.com/repos/digitalgreenorg/dg/subscription","commits_url":"https://api.github.com/repos/digitalgreenorg/dg/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalgreenorg/dg/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalgreenorg/dg/contents/{+path}","compare_url":"https://api.github.com/repos/digitalgreenorg/dg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalgreenorg/dg/merges","archive_url":"https://api.github.com/repos/digitalgreenorg/dg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalgreenorg/dg/downloads","issues_url":"https://api.github.com/repos/digitalgreenorg/dg/issues{/number}","pulls_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalgreenorg/dg/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalgreenorg/dg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalgreenorg/dg/labels{/name}","releases_url":"https://api.github.com/repos/digitalgreenorg/dg/releases{/id}","deployments_url":"https://api.github.com/repos/digitalgreenorg/dg/deployments","created_at":"2011-11-09T16:04:45Z","updated_at":"2016-10-28T05:20:01Z","pushed_at":"2016-12-02T08:47:15Z","git_url":"git://github.com/digitalgreenorg/dg.git","ssh_url":"git@github.com:digitalgreenorg/dg.git","clone_url":"https://github.com/digitalgreenorg/dg.git","svn_url":"https://github.com/digitalgreenorg/dg","homepage":"","size":472797,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":20,"forks":6,"open_issues":20,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/629"},"issue":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/629"},"comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/629/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/629/commits"},"statuses":{"href":"https://api.github.com/repos/digitalgreenorg/dg/statuses/afed65d1048048db520bda2df968e5bb22d5891e"}}}}
{"actor":{"display_login":"jediknightpython"}}