{"action":"created","comment":{"url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/comments/44090859","id":44090859,"diff_hunk":"@@ -31,18 +35,23 @@ def construct_and_(args):\n \n \n def get_request_args(view_func):\n-    \"\"\"Make sure all arguments are passed to a view.\"\"\"\n+    \"\"\"Make sure all URL and POST data arguments are passed to a view.\"\"\"\n+    @wraps(view_func)\n     def get_args():\n-        \"\"\"Get the arguments from a request.\"\"\"\n+        \"\"\"Get the URL and POST data arguments from a request.\"\"\"\n+        both = {k: v[0] for k,v in dict(request.args).iteritems()}\n+        both.update(json.loads(request.data or \"{}\"))\n         args = {}\n-        compare_dates(start=request.args.get('start_date'), end=request.args.get('end_date'))\n-        args['start_date'] = valid_start_date(request.args.get('start_date'))\n-        args['page_size'] = valid_page_size(request.args.get('page_size'))\n-        args['end_date'] = valid_end_date(request.args.get('end_date'))\n-        args['user_id'] = valid_user_id(request.args.get('user_id'))\n-        args['offset'] = valid_offset(request.args.get('offset'))\n-        args['sort'] = valid_sort(request.args.get('sort'))\n-        args['tag'] = valid_tag(request.args.get('tag'))\n+        compare_dates(start=both.get('start_date'), end=both.get('end_date'))\n+        args['start_date'] = valid_start_date(both.get('start_date'))\n+        args['page_size'] = valid_page_size(both.get('page_size'))\n+        args['end_date'] = valid_end_date(both.get('end_date'))\n+        args['user_id'] = valid_user_id(both.get('user_id'))\n+        args['offset'] = valid_offset(both.get('offset'))\n+        args['sort'] = valid_sort(both.get('sort'))\n+        args['tag'] = valid_tag(both.get('tag'))\n+        args['filter_tag'] = valid_tag(both.get('filter_tag'))","path":"gamecenter/api/helpers/get.py","position":null,"original_position":63,"commit_id":"5ae7652ca2e4d1d72e7c6b075e18bf5dd9e03c86","original_commit_id":"e511b699ebea0ece319f8164bb41ff2aa9ff0d73","user":{"login":"mjperrone","id":3848371,"avatar_url":"https://avatars.githubusercontent.com/u/3848371?v=3","gravatar_id":"","url":"https://api.github.com/users/mjperrone","html_url":"https://github.com/mjperrone","followers_url":"https://api.github.com/users/mjperrone/followers","following_url":"https://api.github.com/users/mjperrone/following{/other_user}","gists_url":"https://api.github.com/users/mjperrone/gists{/gist_id}","starred_url":"https://api.github.com/users/mjperrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjperrone/subscriptions","organizations_url":"https://api.github.com/users/mjperrone/orgs","repos_url":"https://api.github.com/users/mjperrone/repos","events_url":"https://api.github.com/users/mjperrone/events{/privacy}","received_events_url":"https://api.github.com/users/mjperrone/received_events","type":"User","site_admin":false},"body":"oh lol, I just noticed that. uh idc sure I'll play your game.","created_at":"2015-11-06T00:40:18Z","updated_at":"2015-11-06T00:40:18Z","html_url":"https://github.com/Rdbaker/GameCenter/pull/8#discussion_r44090859","pull_request_url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/comments/44090859"},"html":{"href":"https://github.com/Rdbaker/GameCenter/pull/8#discussion_r44090859"},"pull_request":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8","id":49878768,"html_url":"https://github.com/Rdbaker/GameCenter/pull/8","diff_url":"https://github.com/Rdbaker/GameCenter/pull/8.diff","patch_url":"https://github.com/Rdbaker/GameCenter/pull/8.patch","issue_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues/8","number":8,"state":"open","locked":false,"title":"99% Complete api with tests that kind of work","user":{"login":"mjperrone","id":3848371,"avatar_url":"https://avatars.githubusercontent.com/u/3848371?v=3","gravatar_id":"","url":"https://api.github.com/users/mjperrone","html_url":"https://github.com/mjperrone","followers_url":"https://api.github.com/users/mjperrone/followers","following_url":"https://api.github.com/users/mjperrone/following{/other_user}","gists_url":"https://api.github.com/users/mjperrone/gists{/gist_id}","starred_url":"https://api.github.com/users/mjperrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjperrone/subscriptions","organizations_url":"https://api.github.com/users/mjperrone/orgs","repos_url":"https://api.github.com/users/mjperrone/repos","events_url":"https://api.github.com/users/mjperrone/events{/privacy}","received_events_url":"https://api.github.com/users/mjperrone/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-05T20:50:50Z","updated_at":"2015-11-06T00:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9d2355821f10645ee38c7ef0c4d0c8d824277bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues/8/comments","statuses_url":"https://api.github.com/repos/Rdbaker/GameCenter/statuses/5ae7652ca2e4d1d72e7c6b075e18bf5dd9e03c86","head":{"label":"Rdbaker:complete_api","ref":"complete_api","sha":"5ae7652ca2e4d1d72e7c6b075e18bf5dd9e03c86","user":{"login":"Rdbaker","id":2810764,"avatar_url":"https://avatars.githubusercontent.com/u/2810764?v=3","gravatar_id":"","url":"https://api.github.com/users/Rdbaker","html_url":"https://github.com/Rdbaker","followers_url":"https://api.github.com/users/Rdbaker/followers","following_url":"https://api.github.com/users/Rdbaker/following{/other_user}","gists_url":"https://api.github.com/users/Rdbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/Rdbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rdbaker/subscriptions","organizations_url":"https://api.github.com/users/Rdbaker/orgs","repos_url":"https://api.github.com/users/Rdbaker/repos","events_url":"https://api.github.com/users/Rdbaker/events{/privacy}","received_events_url":"https://api.github.com/users/Rdbaker/received_events","type":"User","site_admin":false},"repo":{"id":41561134,"name":"GameCenter","full_name":"Rdbaker/GameCenter","owner":{"login":"Rdbaker","id":2810764,"avatar_url":"https://avatars.githubusercontent.com/u/2810764?v=3","gravatar_id":"","url":"https://api.github.com/users/Rdbaker","html_url":"https://github.com/Rdbaker","followers_url":"https://api.github.com/users/Rdbaker/followers","following_url":"https://api.github.com/users/Rdbaker/following{/other_user}","gists_url":"https://api.github.com/users/Rdbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/Rdbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rdbaker/subscriptions","organizations_url":"https://api.github.com/users/Rdbaker/orgs","repos_url":"https://api.github.com/users/Rdbaker/repos","events_url":"https://api.github.com/users/Rdbaker/events{/privacy}","received_events_url":"https://api.github.com/users/Rdbaker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rdbaker/GameCenter","description":"A service for game developers to use to help build games quickly","fork":false,"url":"https://api.github.com/repos/Rdbaker/GameCenter","forks_url":"https://api.github.com/repos/Rdbaker/GameCenter/forks","keys_url":"https://api.github.com/repos/Rdbaker/GameCenter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rdbaker/GameCenter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rdbaker/GameCenter/teams","hooks_url":"https://api.github.com/repos/Rdbaker/GameCenter/hooks","issue_events_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues/events{/number}","events_url":"https://api.github.com/repos/Rdbaker/GameCenter/events","assignees_url":"https://api.github.com/repos/Rdbaker/GameCenter/assignees{/user}","branches_url":"https://api.github.com/repos/Rdbaker/GameCenter/branches{/branch}","tags_url":"https://api.github.com/repos/Rdbaker/GameCenter/tags","blobs_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rdbaker/GameCenter/statuses/{sha}","languages_url":"https://api.github.com/repos/Rdbaker/GameCenter/languages","stargazers_url":"https://api.github.com/repos/Rdbaker/GameCenter/stargazers","contributors_url":"https://api.github.com/repos/Rdbaker/GameCenter/contributors","subscribers_url":"https://api.github.com/repos/Rdbaker/GameCenter/subscribers","subscription_url":"https://api.github.com/repos/Rdbaker/GameCenter/subscription","commits_url":"https://api.github.com/repos/Rdbaker/GameCenter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rdbaker/GameCenter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rdbaker/GameCenter/contents/{+path}","compare_url":"https://api.github.com/repos/Rdbaker/GameCenter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rdbaker/GameCenter/merges","archive_url":"https://api.github.com/repos/Rdbaker/GameCenter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rdbaker/GameCenter/downloads","issues_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues{/number}","pulls_url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls{/number}","milestones_url":"https://api.github.com/repos/Rdbaker/GameCenter/milestones{/number}","notifications_url":"https://api.github.com/repos/Rdbaker/GameCenter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rdbaker/GameCenter/labels{/name}","releases_url":"https://api.github.com/repos/Rdbaker/GameCenter/releases{/id}","created_at":"2015-08-28T17:49:16Z","updated_at":"2015-09-14T22:06:16Z","pushed_at":"2015-11-06T00:39:14Z","git_url":"git://github.com/Rdbaker/GameCenter.git","ssh_url":"git@github.com:Rdbaker/GameCenter.git","clone_url":"https://github.com/Rdbaker/GameCenter.git","svn_url":"https://github.com/Rdbaker/GameCenter","homepage":"","size":1288,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Rdbaker:master","ref":"master","sha":"8f228a615545f9c61c3884179744b5f89c507588","user":{"login":"Rdbaker","id":2810764,"avatar_url":"https://avatars.githubusercontent.com/u/2810764?v=3","gravatar_id":"","url":"https://api.github.com/users/Rdbaker","html_url":"https://github.com/Rdbaker","followers_url":"https://api.github.com/users/Rdbaker/followers","following_url":"https://api.github.com/users/Rdbaker/following{/other_user}","gists_url":"https://api.github.com/users/Rdbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/Rdbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rdbaker/subscriptions","organizations_url":"https://api.github.com/users/Rdbaker/orgs","repos_url":"https://api.github.com/users/Rdbaker/repos","events_url":"https://api.github.com/users/Rdbaker/events{/privacy}","received_events_url":"https://api.github.com/users/Rdbaker/received_events","type":"User","site_admin":false},"repo":{"id":41561134,"name":"GameCenter","full_name":"Rdbaker/GameCenter","owner":{"login":"Rdbaker","id":2810764,"avatar_url":"https://avatars.githubusercontent.com/u/2810764?v=3","gravatar_id":"","url":"https://api.github.com/users/Rdbaker","html_url":"https://github.com/Rdbaker","followers_url":"https://api.github.com/users/Rdbaker/followers","following_url":"https://api.github.com/users/Rdbaker/following{/other_user}","gists_url":"https://api.github.com/users/Rdbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/Rdbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rdbaker/subscriptions","organizations_url":"https://api.github.com/users/Rdbaker/orgs","repos_url":"https://api.github.com/users/Rdbaker/repos","events_url":"https://api.github.com/users/Rdbaker/events{/privacy}","received_events_url":"https://api.github.com/users/Rdbaker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rdbaker/GameCenter","description":"A service for game developers to use to help build games quickly","fork":false,"url":"https://api.github.com/repos/Rdbaker/GameCenter","forks_url":"https://api.github.com/repos/Rdbaker/GameCenter/forks","keys_url":"https://api.github.com/repos/Rdbaker/GameCenter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rdbaker/GameCenter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rdbaker/GameCenter/teams","hooks_url":"https://api.github.com/repos/Rdbaker/GameCenter/hooks","issue_events_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues/events{/number}","events_url":"https://api.github.com/repos/Rdbaker/GameCenter/events","assignees_url":"https://api.github.com/repos/Rdbaker/GameCenter/assignees{/user}","branches_url":"https://api.github.com/repos/Rdbaker/GameCenter/branches{/branch}","tags_url":"https://api.github.com/repos/Rdbaker/GameCenter/tags","blobs_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rdbaker/GameCenter/statuses/{sha}","languages_url":"https://api.github.com/repos/Rdbaker/GameCenter/languages","stargazers_url":"https://api.github.com/repos/Rdbaker/GameCenter/stargazers","contributors_url":"https://api.github.com/repos/Rdbaker/GameCenter/contributors","subscribers_url":"https://api.github.com/repos/Rdbaker/GameCenter/subscribers","subscription_url":"https://api.github.com/repos/Rdbaker/GameCenter/subscription","commits_url":"https://api.github.com/repos/Rdbaker/GameCenter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rdbaker/GameCenter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rdbaker/GameCenter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rdbaker/GameCenter/contents/{+path}","compare_url":"https://api.github.com/repos/Rdbaker/GameCenter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rdbaker/GameCenter/merges","archive_url":"https://api.github.com/repos/Rdbaker/GameCenter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rdbaker/GameCenter/downloads","issues_url":"https://api.github.com/repos/Rdbaker/GameCenter/issues{/number}","pulls_url":"https://api.github.com/repos/Rdbaker/GameCenter/pulls{/number}","milestones_url":"https://api.github.com/repos/Rdbaker/GameCenter/milestones{/number}","notifications_url":"https://api.github.com/repos/Rdbaker/GameCenter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rdbaker/GameCenter/labels{/name}","releases_url":"https://api.github.com/repos/Rdbaker/GameCenter/releases{/id}","created_at":"2015-08-28T17:49:16Z","updated_at":"2015-09-14T22:06:16Z","pushed_at":"2015-11-06T00:39:14Z","git_url":"git://github.com/Rdbaker/GameCenter.git","ssh_url":"git@github.com:Rdbaker/GameCenter.git","clone_url":"https://github.com/Rdbaker/GameCenter.git","svn_url":"https://github.com/Rdbaker/GameCenter","homepage":"","size":1288,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8"},"html":{"href":"https://github.com/Rdbaker/GameCenter/pull/8"},"issue":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/issues/8"},"comments":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Rdbaker/GameCenter/statuses/5ae7652ca2e4d1d72e7c6b075e18bf5dd9e03c86"}}}}