GitHub PullRequestEvent at 2014-05-12 23:20:51
Repository: dql
Actor: stevearc
Payload: {"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/mathcamp/dql/pulls/1","id":15795996,"html_url":"https://github.com/mathcamp/dql/pull/1","diff_url":"https://github.com/mathcamp/dql/pull/1.diff","patch_url":"https://github.com/mathcamp/dql/pull/1.patch","issue_url":"https://api.github.com/repos/mathcamp/dql/issues/1","number":1,"state":"closed","title":"Fix error formatting \"count\" results","user":{"login":"cce","id":51567,"avatar_url":"https://avatars.githubusercontent.com/u/51567?","gravatar_id":"b264b6da558d4cfe7b3a697c4b190fa9","url":"https://api.github.com/users/cce","html_url":"https://github.com/cce","followers_url":"https://api.github.com/users/cce/followers","following_url":"https://api.github.com/users/cce/following{/other_user}","gists_url":"https://api.github.com/users/cce/gists{/gist_id}","starred_url":"https://api.github.com/users/cce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cce/subscriptions","organizations_url":"https://api.github.com/users/cce/orgs","repos_url":"https://api.github.com/users/cce/repos","events_url":"https://api.github.com/users/cce/events{/privacy}","received_events_url":"https://api.github.com/users/cce/received_events","type":"User","site_admin":false},"body":"Hi math campers (btw what does that mean?), thanks for dql, it is really cool and useful!  While trying it out I was getting this error when running the `count` command, which is fixed in this PR.\r\n\r\n```\r\nus-east-1> count test_Rollups WHERE key = 'XXXX';\r\nTraceback (most recent call last):\r\n  File \"/home/cce/dql.env/lib/python2.7/site-packages/dql/cli.py\", line 120, in start\r\n    self.cmdloop()\r\n  File \"/usr/lib/python2.7/cmd.py\", line 142, in cmdloop\r\n    stop = self.onecmd(line)\r\n  File \"/usr/lib/python2.7/cmd.py\", line 220, in onecmd\r\n    return self.default(line)\r\n  File \"/home/cce/dql.env/lib/python2.7/site-packages/dql/cli.py\", line 313, in default\r\n    self._run_cmd(command)\r\n  File \"/home/cce/dql.env/lib/python2.7/site-packages/dql/cli.py\", line 324, in _run_cmd\r\n    has_more = self.formatter.write(results, ostream)\r\n  File \"/home/cce/dql.env/lib/python2.7/site-packages/dql/output.py\", line 91, in write\r\n    for result in results:\r\nTypeError: 'int' object is not iterable\r\n```","created_at":"2014-05-12T22:52:10Z","updated_at":"2014-05-12T23:20:51Z","closed_at":"2014-05-12T23:20:51Z","merged_at":null,"merge_commit_sha":"5b1f473b9fffd789727ba21c73077595bd1245cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mathcamp/dql/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mathcamp/dql/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mathcamp/dql/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mathcamp/dql/issues/1/comments","statuses_url":"https://api.github.com/repos/mathcamp/dql/statuses/d0de3b0fbbf2a549abc69c2601bc5781d0645c11","head":{"label":"cce:count_results","ref":"count_results","sha":"d0de3b0fbbf2a549abc69c2601bc5781d0645c11","user":{"login":"cce","id":51567,"avatar_url":"https://avatars.githubusercontent.com/u/51567?","gravatar_id":"b264b6da558d4cfe7b3a697c4b190fa9","url":"https://api.github.com/users/cce","html_url":"https://github.com/cce","followers_url":"https://api.github.com/users/cce/followers","following_url":"https://api.github.com/users/cce/following{/other_user}","gists_url":"https://api.github.com/users/cce/gists{/gist_id}","starred_url":"https://api.github.com/users/cce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cce/subscriptions","organizations_url":"https://api.github.com/users/cce/orgs","repos_url":"https://api.github.com/users/cce/repos","events_url":"https://api.github.com/users/cce/events{/privacy}","received_events_url":"https://api.github.com/users/cce/received_events","type":"User","site_admin":false},"repo":{"id":19718154,"name":"dql","full_name":"cce/dql","owner":{"login":"cce","id":51567,"avatar_url":"https://avatars.githubusercontent.com/u/51567?","gravatar_id":"b264b6da558d4cfe7b3a697c4b190fa9","url":"https://api.github.com/users/cce","html_url":"https://github.com/cce","followers_url":"https://api.github.com/users/cce/followers","following_url":"https://api.github.com/users/cce/following{/other_user}","gists_url":"https://api.github.com/users/cce/gists{/gist_id}","starred_url":"https://api.github.com/users/cce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cce/subscriptions","organizations_url":"https://api.github.com/users/cce/orgs","repos_url":"https://api.github.com/users/cce/repos","events_url":"https://api.github.com/users/cce/events{/privacy}","received_events_url":"https://api.github.com/users/cce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cce/dql","description":"A SQL-ish language for DynamoDB","fork":true,"url":"https://api.github.com/repos/cce/dql","forks_url":"https://api.github.com/repos/cce/dql/forks","keys_url":"https://api.github.com/repos/cce/dql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cce/dql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cce/dql/teams","hooks_url":"https://api.github.com/repos/cce/dql/hooks","issue_events_url":"https://api.github.com/repos/cce/dql/issues/events{/number}","events_url":"https://api.github.com/repos/cce/dql/events","assignees_url":"https://api.github.com/repos/cce/dql/assignees{/user}","branches_url":"https://api.github.com/repos/cce/dql/branches{/branch}","tags_url":"https://api.github.com/repos/cce/dql/tags","blobs_url":"https://api.github.com/repos/cce/dql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cce/dql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cce/dql/git/refs{/sha}","trees_url":"https://api.github.com/repos/cce/dql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cce/dql/statuses/{sha}","languages_url":"https://api.github.com/repos/cce/dql/languages","stargazers_url":"https://api.github.com/repos/cce/dql/stargazers","contributors_url":"https://api.github.com/repos/cce/dql/contributors","subscribers_url":"https://api.github.com/repos/cce/dql/subscribers","subscription_url":"https://api.github.com/repos/cce/dql/subscription","commits_url":"https://api.github.com/repos/cce/dql/commits{/sha}","git_commits_url":"https://api.github.com/repos/cce/dql/git/commits{/sha}","comments_url":"https://api.github.com/repos/cce/dql/comments{/number}","issue_comment_url":"https://api.github.com/repos/cce/dql/issues/comments/{number}","contents_url":"https://api.github.com/repos/cce/dql/contents/{+path}","compare_url":"https://api.github.com/repos/cce/dql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cce/dql/merges","archive_url":"https://api.github.com/repos/cce/dql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cce/dql/downloads","issues_url":"https://api.github.com/repos/cce/dql/issues{/number}","pulls_url":"https://api.github.com/repos/cce/dql/pulls{/number}","milestones_url":"https://api.github.com/repos/cce/dql/milestones{/number}","notifications_url":"https://api.github.com/repos/cce/dql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cce/dql/labels{/name}","releases_url":"https://api.github.com/repos/cce/dql/releases{/id}","created_at":"2014-05-12T22:47:28Z","updated_at":"2014-05-12T23:20:51Z","pushed_at":"2014-05-12T22:48:48Z","git_url":"git://github.com/cce/dql.git","ssh_url":"git@github.com:cce/dql.git","clone_url":"https://github.com/cce/dql.git","svn_url":"https://github.com/cce/dql","homepage":"http://dql.readthedocs.org/","size":260,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mathcamp:master","ref":"master","sha":"6692a355146f3a005d78bd84afc94774c5d61aea","user":{"login":"mathcamp","id":3375274,"avatar_url":"https://avatars.githubusercontent.com/u/3375274?","gravatar_id":null,"url":"https://api.github.com/users/mathcamp","html_url":"https://github.com/mathcamp","followers_url":"https://api.github.com/users/mathcamp/followers","following_url":"https://api.github.com/users/mathcamp/following{/other_user}","gists_url":"https://api.github.com/users/mathcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/mathcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathcamp/subscriptions","organizations_url":"https://api.github.com/users/mathcamp/orgs","repos_url":"https://api.github.com/users/mathcamp/repos","events_url":"https://api.github.com/users/mathcamp/events{/privacy}","received_events_url":"https://api.github.com/users/mathcamp/received_events","type":"Organization","site_admin":false},"repo":{"id":14965189,"name":"dql","full_name":"mathcamp/dql","owner":{"login":"mathcamp","id":3375274,"avatar_url":"https://avatars.githubusercontent.com/u/3375274?","gravatar_id":null,"url":"https://api.github.com/users/mathcamp","html_url":"https://github.com/mathcamp","followers_url":"https://api.github.com/users/mathcamp/followers","following_url":"https://api.github.com/users/mathcamp/following{/other_user}","gists_url":"https://api.github.com/users/mathcamp/gists{/gist_id}","starred_url":"https://api.github.com/users/mathcamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathcamp/subscriptions","organizations_url":"https://api.github.com/users/mathcamp/orgs","repos_url":"https://api.github.com/users/mathcamp/repos","events_url":"https://api.github.com/users/mathcamp/events{/privacy}","received_events_url":"https://api.github.com/users/mathcamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mathcamp/dql","description":"A SQL-ish language for DynamoDB","fork":false,"url":"https://api.github.com/repos/mathcamp/dql","forks_url":"https://api.github.com/repos/mathcamp/dql/forks","keys_url":"https://api.github.com/repos/mathcamp/dql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathcamp/dql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathcamp/dql/teams","hooks_url":"https://api.github.com/repos/mathcamp/dql/hooks","issue_events_url":"https://api.github.com/repos/mathcamp/dql/issues/events{/number}","events_url":"https://api.github.com/repos/mathcamp/dql/events","assignees_url":"https://api.github.com/repos/mathcamp/dql/assignees{/user}","branches_url":"https://api.github.com/repos/mathcamp/dql/branches{/branch}","tags_url":"https://api.github.com/repos/mathcamp/dql/tags","blobs_url":"https://api.github.com/repos/mathcamp/dql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathcamp/dql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathcamp/dql/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathcamp/dql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathcamp/dql/statuses/{sha}","languages_url":"https://api.github.com/repos/mathcamp/dql/languages","stargazers_url":"https://api.github.com/repos/mathcamp/dql/stargazers","contributors_url":"https://api.github.com/repos/mathcamp/dql/contributors","subscribers_url":"https://api.github.com/repos/mathcamp/dql/subscribers","subscription_url":"https://api.github.com/repos/mathcamp/dql/subscription","commits_url":"https://api.github.com/repos/mathcamp/dql/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathcamp/dql/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathcamp/dql/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathcamp/dql/issues/comments/{number}","contents_url":"https://api.github.com/repos/mathcamp/dql/contents/{+path}","compare_url":"https://api.github.com/repos/mathcamp/dql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathcamp/dql/merges","archive_url":"https://api.github.com/repos/mathcamp/dql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathcamp/dql/downloads","issues_url":"https://api.github.com/repos/mathcamp/dql/issues{/number}","pulls_url":"https://api.github.com/repos/mathcamp/dql/pulls{/number}","milestones_url":"https://api.github.com/repos/mathcamp/dql/milestones{/number}","notifications_url":"https://api.github.com/repos/mathcamp/dql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathcamp/dql/labels{/name}","releases_url":"https://api.github.com/repos/mathcamp/dql/releases{/id}","created_at":"2013-12-05T20:41:05Z","updated_at":"2014-05-12T23:20:18Z","pushed_at":"2014-05-12T23:20:18Z","git_url":"git://github.com/mathcamp/dql.git","ssh_url":"git@github.com:mathcamp/dql.git","clone_url":"https://github.com/mathcamp/dql.git","svn_url":"https://github.com/mathcamp/dql","homepage":"http://dql.readthedocs.org/","size":712,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mathcamp/dql/pulls/1"},"html":{"href":"https://github.com/mathcamp/dql/pull/1"},"issue":{"href":"https://api.github.com/repos/mathcamp/dql/issues/1"},"comments":{"href":"https://api.github.com/repos/mathcamp/dql/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mathcamp/dql/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mathcamp/dql/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mathcamp/dql/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mathcamp/dql/statuses/d0de3b0fbbf2a549abc69c2601bc5781d0645c11"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}