{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments/29331520","id":29331520,"diff_hunk":"@@ -78,11 +79,47 @@ def edit_fxosprice(request, username='', id=None):\n \n \n @login_required\n-def all_fxosprice(request):\n+def all_fxosprice(request, user_pk=None):\n     user = request.user\n-    contributions = Contribution.objects.filter(user=user.pk)\n+    if user_pk:\n+        contributions = Contribution.objects.filter(user=user_pk)\n+    else:\n+        contributions = Contribution.objects.all()","path":"marketpulse/main/views.py","position":19,"original_position":19,"commit_id":"b5044d7d27c97bea57269562bee2f4ef3f85654f","original_commit_id":"b5044d7d27c97bea57269562bee2f4ef3f85654f","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"body":"You can move this line above the `if` statement and remove `else` completely.","created_at":"2015-04-29T12:43:16Z","updated_at":"2015-04-29T12:43:16Z","html_url":"https://github.com/mozilla/marketpulse/pull/135#discussion_r29331520","pull_request_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments/29331520"},"html":{"href":"https://github.com/mozilla/marketpulse/pull/135#discussion_r29331520"},"pull_request":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/marketpulse/pulls/135","id":34260650,"html_url":"https://github.com/mozilla/marketpulse/pull/135","diff_url":"https://github.com/mozilla/marketpulse/pull/135.diff","patch_url":"https://github.com/mozilla/marketpulse/pull/135.patch","issue_url":"https://api.github.com/repos/mozilla/marketpulse/issues/135","number":135,"state":"open","locked":false,"title":"Design list/detail views for all contrubutions","user":{"login":"comzeradd","id":939357,"avatar_url":"https://avatars.githubusercontent.com/u/939357?v=3","gravatar_id":"","url":"https://api.github.com/users/comzeradd","html_url":"https://github.com/comzeradd","followers_url":"https://api.github.com/users/comzeradd/followers","following_url":"https://api.github.com/users/comzeradd/following{/other_user}","gists_url":"https://api.github.com/users/comzeradd/gists{/gist_id}","starred_url":"https://api.github.com/users/comzeradd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comzeradd/subscriptions","organizations_url":"https://api.github.com/users/comzeradd/orgs","repos_url":"https://api.github.com/users/comzeradd/repos","events_url":"https://api.github.com/users/comzeradd/events{/privacy}","received_events_url":"https://api.github.com/users/comzeradd/received_events","type":"User","site_admin":false},"body":"* Fixes #129\r\n* Fixes #130","created_at":"2015-04-28T12:20:20Z","updated_at":"2015-04-29T12:43:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"857a8dacb71c21974642a93bb4adee6d2547f1a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/135/commits","review_comments_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/135/comments","review_comment_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/marketpulse/issues/135/comments","statuses_url":"https://api.github.com/repos/mozilla/marketpulse/statuses/b5044d7d27c97bea57269562bee2f4ef3f85654f","head":{"label":"comzeradd:contributions","ref":"contributions","sha":"b5044d7d27c97bea57269562bee2f4ef3f85654f","user":{"login":"comzeradd","id":939357,"avatar_url":"https://avatars.githubusercontent.com/u/939357?v=3","gravatar_id":"","url":"https://api.github.com/users/comzeradd","html_url":"https://github.com/comzeradd","followers_url":"https://api.github.com/users/comzeradd/followers","following_url":"https://api.github.com/users/comzeradd/following{/other_user}","gists_url":"https://api.github.com/users/comzeradd/gists{/gist_id}","starred_url":"https://api.github.com/users/comzeradd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comzeradd/subscriptions","organizations_url":"https://api.github.com/users/comzeradd/orgs","repos_url":"https://api.github.com/users/comzeradd/repos","events_url":"https://api.github.com/users/comzeradd/events{/privacy}","received_events_url":"https://api.github.com/users/comzeradd/received_events","type":"User","site_admin":false},"repo":{"id":30416339,"name":"marketpulse","full_name":"comzeradd/marketpulse","owner":{"login":"comzeradd","id":939357,"avatar_url":"https://avatars.githubusercontent.com/u/939357?v=3","gravatar_id":"","url":"https://api.github.com/users/comzeradd","html_url":"https://github.com/comzeradd","followers_url":"https://api.github.com/users/comzeradd/followers","following_url":"https://api.github.com/users/comzeradd/following{/other_user}","gists_url":"https://api.github.com/users/comzeradd/gists{/gist_id}","starred_url":"https://api.github.com/users/comzeradd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comzeradd/subscriptions","organizations_url":"https://api.github.com/users/comzeradd/orgs","repos_url":"https://api.github.com/users/comzeradd/repos","events_url":"https://api.github.com/users/comzeradd/events{/privacy}","received_events_url":"https://api.github.com/users/comzeradd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/comzeradd/marketpulse","description":"Market Pulse contribution app","fork":true,"url":"https://api.github.com/repos/comzeradd/marketpulse","forks_url":"https://api.github.com/repos/comzeradd/marketpulse/forks","keys_url":"https://api.github.com/repos/comzeradd/marketpulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/comzeradd/marketpulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/comzeradd/marketpulse/teams","hooks_url":"https://api.github.com/repos/comzeradd/marketpulse/hooks","issue_events_url":"https://api.github.com/repos/comzeradd/marketpulse/issues/events{/number}","events_url":"https://api.github.com/repos/comzeradd/marketpulse/events","assignees_url":"https://api.github.com/repos/comzeradd/marketpulse/assignees{/user}","branches_url":"https://api.github.com/repos/comzeradd/marketpulse/branches{/branch}","tags_url":"https://api.github.com/repos/comzeradd/marketpulse/tags","blobs_url":"https://api.github.com/repos/comzeradd/marketpulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/comzeradd/marketpulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/comzeradd/marketpulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/comzeradd/marketpulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/comzeradd/marketpulse/statuses/{sha}","languages_url":"https://api.github.com/repos/comzeradd/marketpulse/languages","stargazers_url":"https://api.github.com/repos/comzeradd/marketpulse/stargazers","contributors_url":"https://api.github.com/repos/comzeradd/marketpulse/contributors","subscribers_url":"https://api.github.com/repos/comzeradd/marketpulse/subscribers","subscription_url":"https://api.github.com/repos/comzeradd/marketpulse/subscription","commits_url":"https://api.github.com/repos/comzeradd/marketpulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/comzeradd/marketpulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/comzeradd/marketpulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/comzeradd/marketpulse/issues/comments{/number}","contents_url":"https://api.github.com/repos/comzeradd/marketpulse/contents/{+path}","compare_url":"https://api.github.com/repos/comzeradd/marketpulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/comzeradd/marketpulse/merges","archive_url":"https://api.github.com/repos/comzeradd/marketpulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/comzeradd/marketpulse/downloads","issues_url":"https://api.github.com/repos/comzeradd/marketpulse/issues{/number}","pulls_url":"https://api.github.com/repos/comzeradd/marketpulse/pulls{/number}","milestones_url":"https://api.github.com/repos/comzeradd/marketpulse/milestones{/number}","notifications_url":"https://api.github.com/repos/comzeradd/marketpulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/comzeradd/marketpulse/labels{/name}","releases_url":"https://api.github.com/repos/comzeradd/marketpulse/releases{/id}","created_at":"2015-02-06T14:36:50Z","updated_at":"2015-02-20T11:49:46Z","pushed_at":"2015-04-29T11:54:30Z","git_url":"git://github.com/comzeradd/marketpulse.git","ssh_url":"git@github.com:comzeradd/marketpulse.git","clone_url":"https://github.com/comzeradd/marketpulse.git","svn_url":"https://github.com/comzeradd/marketpulse","homepage":null,"size":3756,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"234193b64a32e81ee761ca82195eca91b9dcc845","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":30363756,"name":"marketpulse","full_name":"mozilla/marketpulse","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/marketpulse","description":"Web app to help gather local market data for Firefox OS","fork":false,"url":"https://api.github.com/repos/mozilla/marketpulse","forks_url":"https://api.github.com/repos/mozilla/marketpulse/forks","keys_url":"https://api.github.com/repos/mozilla/marketpulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/marketpulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/marketpulse/teams","hooks_url":"https://api.github.com/repos/mozilla/marketpulse/hooks","issue_events_url":"https://api.github.com/repos/mozilla/marketpulse/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/marketpulse/events","assignees_url":"https://api.github.com/repos/mozilla/marketpulse/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/marketpulse/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/marketpulse/tags","blobs_url":"https://api.github.com/repos/mozilla/marketpulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/marketpulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/marketpulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/marketpulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/marketpulse/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/marketpulse/languages","stargazers_url":"https://api.github.com/repos/mozilla/marketpulse/stargazers","contributors_url":"https://api.github.com/repos/mozilla/marketpulse/contributors","subscribers_url":"https://api.github.com/repos/mozilla/marketpulse/subscribers","subscription_url":"https://api.github.com/repos/mozilla/marketpulse/subscription","commits_url":"https://api.github.com/repos/mozilla/marketpulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/marketpulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/marketpulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/marketpulse/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/marketpulse/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/marketpulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/marketpulse/merges","archive_url":"https://api.github.com/repos/mozilla/marketpulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/marketpulse/downloads","issues_url":"https://api.github.com/repos/mozilla/marketpulse/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/marketpulse/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/marketpulse/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/marketpulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/marketpulse/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/marketpulse/releases{/id}","created_at":"2015-02-05T15:52:17Z","updated_at":"2015-03-30T11:31:26Z","pushed_at":"2015-04-29T11:57:06Z","git_url":"git://github.com/mozilla/marketpulse.git","ssh_url":"git@github.com:mozilla/marketpulse.git","clone_url":"https://github.com/mozilla/marketpulse.git","svn_url":"https://github.com/mozilla/marketpulse","homepage":"https://marketpulse.mozilla.community/","size":4476,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":21,"forks":7,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/135"},"html":{"href":"https://github.com/mozilla/marketpulse/pull/135"},"issue":{"href":"https://api.github.com/repos/mozilla/marketpulse/issues/135"},"comments":{"href":"https://api.github.com/repos/mozilla/marketpulse/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/marketpulse/statuses/b5044d7d27c97bea57269562bee2f4ef3f85654f"}}}}