{"action":"created","comment":{"url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/comments/45562925","id":45562925,"diff_hunk":"@@ -45,18 +46,76 @@ def add():\n                             user_id=int(current_user.get_id()))\n         db.session.add(resource)\n         db.session.commit()\n-        return redirect(url_for('resources.index'))\n+        return redirect(url_for('resources.show', resource_id=resource.id))\n     return render_template('resources/add_resource.html', form=form)\n \n \n @resources.route('/resource/<int:resource_id>')\n @login_required\n-def show_resource(resource_id):\n-    \"\"\"\n-    Show the resource with the given id, the id is an integer.\n-    \"\"\"\n+def show(resource_id):","path":"app/resources/views.py","position":27,"original_position":27,"commit_id":"2879d86200df48a50fba09b1b53ed02ad7f7206d","original_commit_id":"7fb3073180b75fb46ea2bb1dde6797f81e718c97","user":{"login":"yoninachmany","id":4250521,"avatar_url":"https://avatars.githubusercontent.com/u/4250521?v=3","gravatar_id":"","url":"https://api.github.com/users/yoninachmany","html_url":"https://github.com/yoninachmany","followers_url":"https://api.github.com/users/yoninachmany/followers","following_url":"https://api.github.com/users/yoninachmany/following{/other_user}","gists_url":"https://api.github.com/users/yoninachmany/gists{/gist_id}","starred_url":"https://api.github.com/users/yoninachmany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoninachmany/subscriptions","organizations_url":"https://api.github.com/users/yoninachmany/orgs","repos_url":"https://api.github.com/users/yoninachmany/repos","events_url":"https://api.github.com/users/yoninachmany/events{/privacy}","received_events_url":"https://api.github.com/users/yoninachmany/received_events","type":"User","site_admin":false},"body":"I was having issues with giving functions names that included underscores bc redirect(url_for('resources.show',...) https://github.com/hack4impact/women-veterans-rock/pull/26/files#diff-fcb1e97a1f2b48727b411c2ac6d366afR49 Seems like a weird issue","created_at":"2015-11-22T19:07:08Z","updated_at":"2015-11-22T19:07:08Z","html_url":"https://github.com/hack4impact/women-veterans-rock/pull/26#discussion_r45562925","pull_request_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/comments/45562925"},"html":{"href":"https://github.com/hack4impact/women-veterans-rock/pull/26#discussion_r45562925"},"pull_request":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26","id":50755443,"html_url":"https://github.com/hack4impact/women-veterans-rock/pull/26","diff_url":"https://github.com/hack4impact/women-veterans-rock/pull/26.diff","patch_url":"https://github.com/hack4impact/women-veterans-rock/pull/26.patch","issue_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/26","number":26,"state":"open","locked":false,"title":"Users can review a resource, then edit/delete review","user":{"login":"yoninachmany","id":4250521,"avatar_url":"https://avatars.githubusercontent.com/u/4250521?v=3","gravatar_id":"","url":"https://api.github.com/users/yoninachmany","html_url":"https://github.com/yoninachmany","followers_url":"https://api.github.com/users/yoninachmany/followers","following_url":"https://api.github.com/users/yoninachmany/following{/other_user}","gists_url":"https://api.github.com/users/yoninachmany/gists{/gist_id}","starred_url":"https://api.github.com/users/yoninachmany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoninachmany/subscriptions","organizations_url":"https://api.github.com/users/yoninachmany/orgs","repos_url":"https://api.github.com/users/yoninachmany/repos","events_url":"https://api.github.com/users/yoninachmany/events{/privacy}","received_events_url":"https://api.github.com/users/yoninachmany/received_events","type":"User","site_admin":false},"body":"r @aharelick @weronica \r\n\r\n- Write a Review button, links to `/resources/resource/int:resource_id/writeareview` route, which has a form for rating and content\r\n- reviews displayed as tables in `/resources/resource/int:resource_id`\r\n- if user wrote review, an edit/delete button appears next to review\r\n- edit button leads to `/resources/resource/int:resource_id/editareview` route, which looks exactly like `/writeareview` with form field values filled in with previous values\r\n- delete button automatically deletes review\r\n\r\n<img width=\"1280\" alt=\"screen shot 2015-11-15 at 1 30 10 pm\" src=\"https://cloud.githubusercontent.com/assets/4250521/11170839/6fb21304-8bae-11e5-9265-d2c4173388d9.png\">\r\n<img width=\"1280\" alt=\"screen shot 2015-11-15 at 1 30 17 pm\" src=\"https://cloud.githubusercontent.com/assets/4250521/11170837/6fb23884-8bae-11e5-8742-5bc982c91078.png\">\r\n<img width=\"1280\" alt=\"screen shot 2015-11-15 at 1 30 28 pm\" src=\"https://cloud.githubusercontent.com/assets/4250521/11170835/6faea980-8bae-11e5-897c-8a5a6de1911d.png\">\r\n<img width=\"1280\" alt=\"screen shot 2015-11-15 at 1 30 37 pm\" src=\"https://cloud.githubusercontent.com/assets/4250521/11170838/6fb240e0-8bae-11e5-9f2f-497147f791d6.png\">\r\n<img width=\"1280\" alt=\"screen shot 2015-11-15 at 1 30 50 pm\" src=\"https://cloud.githubusercontent.com/assets/4250521/11170836/6fb06888-8bae-11e5-8903-207b505731e8.png\">\r\n<img width=\"1280\" alt=\"screen shot 2015-11-15 at 1 31 06 pm\" src=\"https://cloud.githubusercontent.com/assets/4250521/11170840/6fb3c85c-8bae-11e5-817b-967f1f68943e.png\">","created_at":"2015-11-15T20:35:23Z","updated_at":"2015-11-22T19:07:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"239424cda1e0f38eb27753946348877b4730f2f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26/commits","review_comments_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26/comments","review_comment_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/26/comments","statuses_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/statuses/2879d86200df48a50fba09b1b53ed02ad7f7206d","head":{"label":"hack4impact:yoni-add-resource-review","ref":"yoni-add-resource-review","sha":"2879d86200df48a50fba09b1b53ed02ad7f7206d","user":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"repo":{"id":43617101,"name":"women-veterans-rock","full_name":"hack4impact/women-veterans-rock","owner":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hack4impact/women-veterans-rock","description":"","fork":false,"url":"https://api.github.com/repos/hack4impact/women-veterans-rock","forks_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/forks","keys_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/teams","hooks_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/hooks","issue_events_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/events","assignees_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/tags","blobs_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/languages","stargazers_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/stargazers","contributors_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/contributors","subscribers_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/subscribers","subscription_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/subscription","commits_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/merges","archive_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/downloads","issues_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/releases{/id}","created_at":"2015-10-03T22:21:16Z","updated_at":"2015-11-13T18:13:53Z","pushed_at":"2015-11-22T19:03:31Z","git_url":"git://github.com/hack4impact/women-veterans-rock.git","ssh_url":"git@github.com:hack4impact/women-veterans-rock.git","clone_url":"https://github.com/hack4impact/women-veterans-rock.git","svn_url":"https://github.com/hack4impact/women-veterans-rock","homepage":null,"size":865,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"hack4impact:master","ref":"master","sha":"dcc67feaeb03c7f5416610d6572a97993b8d08be","user":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"repo":{"id":43617101,"name":"women-veterans-rock","full_name":"hack4impact/women-veterans-rock","owner":{"login":"hack4impact","id":9021093,"avatar_url":"https://avatars.githubusercontent.com/u/9021093?v=3","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hack4impact/women-veterans-rock","description":"","fork":false,"url":"https://api.github.com/repos/hack4impact/women-veterans-rock","forks_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/forks","keys_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/teams","hooks_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/hooks","issue_events_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/events","assignees_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/tags","blobs_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/languages","stargazers_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/stargazers","contributors_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/contributors","subscribers_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/subscribers","subscription_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/subscription","commits_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/merges","archive_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/downloads","issues_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact/women-veterans-rock/releases{/id}","created_at":"2015-10-03T22:21:16Z","updated_at":"2015-11-13T18:13:53Z","pushed_at":"2015-11-22T19:03:31Z","git_url":"git://github.com/hack4impact/women-veterans-rock.git","ssh_url":"git@github.com:hack4impact/women-veterans-rock.git","clone_url":"https://github.com/hack4impact/women-veterans-rock.git","svn_url":"https://github.com/hack4impact/women-veterans-rock","homepage":null,"size":865,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26"},"html":{"href":"https://github.com/hack4impact/women-veterans-rock/pull/26"},"issue":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/26"},"comments":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/hack4impact/women-veterans-rock/statuses/2879d86200df48a50fba09b1b53ed02ad7f7206d"}}}}