{"action":"created","comment":{"url":"https://api.github.com/repos/onaio/onadata/pulls/comments/112452302","pull_request_review_id":33767503,"id":112452302,"diff_hunk":"@@ -84,10 +83,13 @@ def query_data(cls, widget):\n             field_xpath = field.get_abbreviated_xpath()\n             field_label = get_field_label(field)\n \n-        columns = [SimpleField(field=\"json->>'%s'\" % unicode(column),\n-                               alias='\"{}\"'.format(column)),\n-                   CountField(field=\"json->>'%s'\" % unicode(column),\n-                              alias='\"count\"')]\n+        columns = [\n+            SimpleField(\n+                field=\"json->>'%s'\" % unicode(column),\n+                alias='{}'.format(column)), CountField(","path":"onadata/apps/logger/models/widget.py","position":82,"original_position":82,"commit_id":"029900ec930e2f2d2acc9b9152a76ab4de45c9df","original_commit_id":"06b56a9a0734363b673ebb4b6ce5c41fc3d29db4","user":{"login":"ukanga","id":85585,"avatar_url":"https://avatars3.githubusercontent.com/u/85585?v=3","gravatar_id":"","url":"https://api.github.com/users/ukanga","html_url":"https://github.com/ukanga","followers_url":"https://api.github.com/users/ukanga/followers","following_url":"https://api.github.com/users/ukanga/following{/other_user}","gists_url":"https://api.github.com/users/ukanga/gists{/gist_id}","starred_url":"https://api.github.com/users/ukanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukanga/subscriptions","organizations_url":"https://api.github.com/users/ukanga/orgs","repos_url":"https://api.github.com/users/ukanga/repos","events_url":"https://api.github.com/users/ukanga/events{/privacy}","received_events_url":"https://api.github.com/users/ukanga/received_events","type":"User","site_admin":false},"body":"This is the work of yapf, I miss them sometimes.","created_at":"2017-04-20T13:27:12Z","updated_at":"2017-04-20T13:27:12Z","html_url":"https://github.com/onaio/onadata/pull/1007#discussion_r112452302","pull_request_url":"https://api.github.com/repos/onaio/onadata/pulls/1007","_links":{"self":{"href":"https://api.github.com/repos/onaio/onadata/pulls/comments/112452302"},"html":{"href":"https://github.com/onaio/onadata/pull/1007#discussion_r112452302"},"pull_request":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1007"}}},"pull_request":{"url":"https://api.github.com/repos/onaio/onadata/pulls/1007","id":116616502,"html_url":"https://github.com/onaio/onadata/pull/1007","diff_url":"https://github.com/onaio/onadata/pull/1007.diff","patch_url":"https://github.com/onaio/onadata/pull/1007.patch","issue_url":"https://api.github.com/repos/onaio/onadata/issues/1007","number":1007,"state":"open","locked":false,"title":"upgrade to django 1.11","user":{"login":"ukanga","id":85585,"avatar_url":"https://avatars3.githubusercontent.com/u/85585?v=3","gravatar_id":"","url":"https://api.github.com/users/ukanga","html_url":"https://github.com/ukanga","followers_url":"https://api.github.com/users/ukanga/followers","following_url":"https://api.github.com/users/ukanga/following{/other_user}","gists_url":"https://api.github.com/users/ukanga/gists{/gist_id}","starred_url":"https://api.github.com/users/ukanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukanga/subscriptions","organizations_url":"https://api.github.com/users/ukanga/orgs","repos_url":"https://api.github.com/users/ukanga/repos","events_url":"https://api.github.com/users/ukanga/events{/privacy}","received_events_url":"https://api.github.com/users/ukanga/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-04-19T18:51:44Z","updated_at":"2017-04-20T13:27:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50bc8f2a2dae9183af2044ebaad13d7d34c8e92f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/onaio/onadata/pulls/1007/commits","review_comments_url":"https://api.github.com/repos/onaio/onadata/pulls/1007/comments","review_comment_url":"https://api.github.com/repos/onaio/onadata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onaio/onadata/issues/1007/comments","statuses_url":"https://api.github.com/repos/onaio/onadata/statuses/029900ec930e2f2d2acc9b9152a76ab4de45c9df","head":{"label":"onaio:cache","ref":"cache","sha":"029900ec930e2f2d2acc9b9152a76ab4de45c9df","user":{"login":"onaio","id":5450613,"avatar_url":"https://avatars0.githubusercontent.com/u/5450613?v=3","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"repo":{"id":12888897,"name":"onadata","full_name":"onaio/onadata","owner":{"login":"onaio","id":5450613,"avatar_url":"https://avatars0.githubusercontent.com/u/5450613?v=3","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onaio/onadata","description":"Collect, Analyze and Share","fork":false,"url":"https://api.github.com/repos/onaio/onadata","forks_url":"https://api.github.com/repos/onaio/onadata/forks","keys_url":"https://api.github.com/repos/onaio/onadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onaio/onadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onaio/onadata/teams","hooks_url":"https://api.github.com/repos/onaio/onadata/hooks","issue_events_url":"https://api.github.com/repos/onaio/onadata/issues/events{/number}","events_url":"https://api.github.com/repos/onaio/onadata/events","assignees_url":"https://api.github.com/repos/onaio/onadata/assignees{/user}","branches_url":"https://api.github.com/repos/onaio/onadata/branches{/branch}","tags_url":"https://api.github.com/repos/onaio/onadata/tags","blobs_url":"https://api.github.com/repos/onaio/onadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onaio/onadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onaio/onadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/onaio/onadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onaio/onadata/statuses/{sha}","languages_url":"https://api.github.com/repos/onaio/onadata/languages","stargazers_url":"https://api.github.com/repos/onaio/onadata/stargazers","contributors_url":"https://api.github.com/repos/onaio/onadata/contributors","subscribers_url":"https://api.github.com/repos/onaio/onadata/subscribers","subscription_url":"https://api.github.com/repos/onaio/onadata/subscription","commits_url":"https://api.github.com/repos/onaio/onadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/onaio/onadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/onaio/onadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/onaio/onadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/onaio/onadata/contents/{+path}","compare_url":"https://api.github.com/repos/onaio/onadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onaio/onadata/merges","archive_url":"https://api.github.com/repos/onaio/onadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onaio/onadata/downloads","issues_url":"https://api.github.com/repos/onaio/onadata/issues{/number}","pulls_url":"https://api.github.com/repos/onaio/onadata/pulls{/number}","milestones_url":"https://api.github.com/repos/onaio/onadata/milestones{/number}","notifications_url":"https://api.github.com/repos/onaio/onadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onaio/onadata/labels{/name}","releases_url":"https://api.github.com/repos/onaio/onadata/releases{/id}","deployments_url":"https://api.github.com/repos/onaio/onadata/deployments","created_at":"2013-09-17T07:25:01Z","updated_at":"2017-04-07T01:32:25Z","pushed_at":"2017-04-20T07:15:49Z","git_url":"git://github.com/onaio/onadata.git","ssh_url":"git@github.com:onaio/onadata.git","clone_url":"https://github.com/onaio/onadata.git","svn_url":"https://github.com/onaio/onadata","homepage":"https://ona.io","size":27962,"stargazers_count":100,"watchers_count":100,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":84,"mirror_url":null,"open_issues_count":60,"forks":84,"open_issues":60,"watchers":100,"default_branch":"master"}},"base":{"label":"onaio:master","ref":"master","sha":"0e4c82dad4ed931581c7de53694215bc47418280","user":{"login":"onaio","id":5450613,"avatar_url":"https://avatars0.githubusercontent.com/u/5450613?v=3","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"repo":{"id":12888897,"name":"onadata","full_name":"onaio/onadata","owner":{"login":"onaio","id":5450613,"avatar_url":"https://avatars0.githubusercontent.com/u/5450613?v=3","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onaio/onadata","description":"Collect, Analyze and Share","fork":false,"url":"https://api.github.com/repos/onaio/onadata","forks_url":"https://api.github.com/repos/onaio/onadata/forks","keys_url":"https://api.github.com/repos/onaio/onadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onaio/onadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onaio/onadata/teams","hooks_url":"https://api.github.com/repos/onaio/onadata/hooks","issue_events_url":"https://api.github.com/repos/onaio/onadata/issues/events{/number}","events_url":"https://api.github.com/repos/onaio/onadata/events","assignees_url":"https://api.github.com/repos/onaio/onadata/assignees{/user}","branches_url":"https://api.github.com/repos/onaio/onadata/branches{/branch}","tags_url":"https://api.github.com/repos/onaio/onadata/tags","blobs_url":"https://api.github.com/repos/onaio/onadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onaio/onadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onaio/onadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/onaio/onadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onaio/onadata/statuses/{sha}","languages_url":"https://api.github.com/repos/onaio/onadata/languages","stargazers_url":"https://api.github.com/repos/onaio/onadata/stargazers","contributors_url":"https://api.github.com/repos/onaio/onadata/contributors","subscribers_url":"https://api.github.com/repos/onaio/onadata/subscribers","subscription_url":"https://api.github.com/repos/onaio/onadata/subscription","commits_url":"https://api.github.com/repos/onaio/onadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/onaio/onadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/onaio/onadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/onaio/onadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/onaio/onadata/contents/{+path}","compare_url":"https://api.github.com/repos/onaio/onadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onaio/onadata/merges","archive_url":"https://api.github.com/repos/onaio/onadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onaio/onadata/downloads","issues_url":"https://api.github.com/repos/onaio/onadata/issues{/number}","pulls_url":"https://api.github.com/repos/onaio/onadata/pulls{/number}","milestones_url":"https://api.github.com/repos/onaio/onadata/milestones{/number}","notifications_url":"https://api.github.com/repos/onaio/onadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onaio/onadata/labels{/name}","releases_url":"https://api.github.com/repos/onaio/onadata/releases{/id}","deployments_url":"https://api.github.com/repos/onaio/onadata/deployments","created_at":"2013-09-17T07:25:01Z","updated_at":"2017-04-07T01:32:25Z","pushed_at":"2017-04-20T07:15:49Z","git_url":"git://github.com/onaio/onadata.git","ssh_url":"git@github.com:onaio/onadata.git","clone_url":"https://github.com/onaio/onadata.git","svn_url":"https://github.com/onaio/onadata","homepage":"https://ona.io","size":27962,"stargazers_count":100,"watchers_count":100,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":84,"mirror_url":null,"open_issues_count":60,"forks":84,"open_issues":60,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1007"},"html":{"href":"https://github.com/onaio/onadata/pull/1007"},"issue":{"href":"https://api.github.com/repos/onaio/onadata/issues/1007"},"comments":{"href":"https://api.github.com/repos/onaio/onadata/issues/1007/comments"},"review_comments":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1007/comments"},"review_comment":{"href":"https://api.github.com/repos/onaio/onadata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1007/commits"},"statuses":{"href":"https://api.github.com/repos/onaio/onadata/statuses/029900ec930e2f2d2acc9b9152a76ab4de45c9df"}}}}
{"actor":{"display_login":"ukanga"}}