{"action":"created","comment":{"url":"https://api.github.com/repos/UWFlow/rmc/pulls/comments/26461260","id":26461260,"diff_hunk":"@@ -442,6 +442,12 @@ def get_ordered_transcript(profile_uc_dict_list):\n \n     schedule_screenshot.update_screenshot_async(profile_user)\n \n+    scholarships = m.Scholarship.objects()\n+    # Filter scholarships based on program\n+    scholarships = [s for s in scholarships if profile_user.short_program_name\n+            in s.programs and s.id not in profile_user.closed_scholarship_ids]","path":"server/profile.py","position":7,"original_position":7,"commit_id":"f8d07e19912f795cae66067bf9196af6a5d4a14a","original_commit_id":"f8d07e19912f795cae66067bf9196af6a5d4a14a","user":{"login":"divad12","id":159687,"avatar_url":"https://avatars.githubusercontent.com/u/159687?v=3","gravatar_id":"","url":"https://api.github.com/users/divad12","html_url":"https://github.com/divad12","followers_url":"https://api.github.com/users/divad12/followers","following_url":"https://api.github.com/users/divad12/following{/other_user}","gists_url":"https://api.github.com/users/divad12/gists{/gist_id}","starred_url":"https://api.github.com/users/divad12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/divad12/subscriptions","organizations_url":"https://api.github.com/users/divad12/orgs","repos_url":"https://api.github.com/users/divad12/repos","events_url":"https://api.github.com/users/divad12/events{/privacy}","received_events_url":"https://api.github.com/users/divad12/received_events","type":"User","site_admin":false},"body":"nit: Can you add a line before this\r\n\r\n```\r\nclosed_scholarship_ids_set = set(profile_user.closed_scholarship_ids)\r\n```\r\n\r\n... which will hopefully speed things up a tiny bit.","created_at":"2015-03-16T05:48:42Z","updated_at":"2015-03-16T05:48:42Z","html_url":"https://github.com/UWFlow/rmc/pull/223#discussion_r26461260","pull_request_url":"https://api.github.com/repos/UWFlow/rmc/pulls/223","_links":{"self":{"href":"https://api.github.com/repos/UWFlow/rmc/pulls/comments/26461260"},"html":{"href":"https://github.com/UWFlow/rmc/pull/223#discussion_r26461260"},"pull_request":{"href":"https://api.github.com/repos/UWFlow/rmc/pulls/223"}}},"pull_request":{"url":"https://api.github.com/repos/UWFlow/rmc/pulls/223","id":30051210,"html_url":"https://github.com/UWFlow/rmc/pull/223","diff_url":"https://github.com/UWFlow/rmc/pull/223.diff","patch_url":"https://github.com/UWFlow/rmc/pull/223.patch","issue_url":"https://api.github.com/repos/UWFlow/rmc/issues/223","number":223,"state":"open","locked":false,"title":"Basic scholarships, need to figure out a way to narrow down results","user":{"login":"JGulbronson","id":2644780,"avatar_url":"https://avatars.githubusercontent.com/u/2644780?v=3","gravatar_id":"","url":"https://api.github.com/users/JGulbronson","html_url":"https://github.com/JGulbronson","followers_url":"https://api.github.com/users/JGulbronson/followers","following_url":"https://api.github.com/users/JGulbronson/following{/other_user}","gists_url":"https://api.github.com/users/JGulbronson/gists{/gist_id}","starred_url":"https://api.github.com/users/JGulbronson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JGulbronson/subscriptions","organizations_url":"https://api.github.com/users/JGulbronson/orgs","repos_url":"https://api.github.com/users/JGulbronson/repos","events_url":"https://api.github.com/users/JGulbronson/events{/privacy}","received_events_url":"https://api.github.com/users/JGulbronson/received_events","type":"User","site_admin":false},"body":"@divad12 Here's the branch I've been working on. If you pull and run locally you'll notice there's a lot of scholarships, so I'll have to try and narrow it down further. ","created_at":"2015-02-26T05:08:27Z","updated_at":"2015-03-16T05:48:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44060fa89679c09d17054dbbfb21c5aca8fc760c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UWFlow/rmc/pulls/223/commits","review_comments_url":"https://api.github.com/repos/UWFlow/rmc/pulls/223/comments","review_comment_url":"https://api.github.com/repos/UWFlow/rmc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UWFlow/rmc/issues/223/comments","statuses_url":"https://api.github.com/repos/UWFlow/rmc/statuses/f8d07e19912f795cae66067bf9196af6a5d4a14a","head":{"label":"JGulbronson:scholarships","ref":"scholarships","sha":"f8d07e19912f795cae66067bf9196af6a5d4a14a","user":{"login":"JGulbronson","id":2644780,"avatar_url":"https://avatars.githubusercontent.com/u/2644780?v=3","gravatar_id":"","url":"https://api.github.com/users/JGulbronson","html_url":"https://github.com/JGulbronson","followers_url":"https://api.github.com/users/JGulbronson/followers","following_url":"https://api.github.com/users/JGulbronson/following{/other_user}","gists_url":"https://api.github.com/users/JGulbronson/gists{/gist_id}","starred_url":"https://api.github.com/users/JGulbronson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JGulbronson/subscriptions","organizations_url":"https://api.github.com/users/JGulbronson/orgs","repos_url":"https://api.github.com/users/JGulbronson/repos","events_url":"https://api.github.com/users/JGulbronson/events{/privacy}","received_events_url":"https://api.github.com/users/JGulbronson/received_events","type":"User","site_admin":false},"repo":{"id":18198853,"name":"rmc","full_name":"JGulbronson/rmc","owner":{"login":"JGulbronson","id":2644780,"avatar_url":"https://avatars.githubusercontent.com/u/2644780?v=3","gravatar_id":"","url":"https://api.github.com/users/JGulbronson","html_url":"https://github.com/JGulbronson","followers_url":"https://api.github.com/users/JGulbronson/followers","following_url":"https://api.github.com/users/JGulbronson/following{/other_user}","gists_url":"https://api.github.com/users/JGulbronson/gists{/gist_id}","starred_url":"https://api.github.com/users/JGulbronson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JGulbronson/subscriptions","organizations_url":"https://api.github.com/users/JGulbronson/orgs","repos_url":"https://api.github.com/users/JGulbronson/repos","events_url":"https://api.github.com/users/JGulbronson/events{/privacy}","received_events_url":"https://api.github.com/users/JGulbronson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JGulbronson/rmc","description":"Flow is a website that lets you plan courses with friends.","fork":true,"url":"https://api.github.com/repos/JGulbronson/rmc","forks_url":"https://api.github.com/repos/JGulbronson/rmc/forks","keys_url":"https://api.github.com/repos/JGulbronson/rmc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JGulbronson/rmc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JGulbronson/rmc/teams","hooks_url":"https://api.github.com/repos/JGulbronson/rmc/hooks","issue_events_url":"https://api.github.com/repos/JGulbronson/rmc/issues/events{/number}","events_url":"https://api.github.com/repos/JGulbronson/rmc/events","assignees_url":"https://api.github.com/repos/JGulbronson/rmc/assignees{/user}","branches_url":"https://api.github.com/repos/JGulbronson/rmc/branches{/branch}","tags_url":"https://api.github.com/repos/JGulbronson/rmc/tags","blobs_url":"https://api.github.com/repos/JGulbronson/rmc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JGulbronson/rmc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JGulbronson/rmc/git/refs{/sha}","trees_url":"https://api.github.com/repos/JGulbronson/rmc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JGulbronson/rmc/statuses/{sha}","languages_url":"https://api.github.com/repos/JGulbronson/rmc/languages","stargazers_url":"https://api.github.com/repos/JGulbronson/rmc/stargazers","contributors_url":"https://api.github.com/repos/JGulbronson/rmc/contributors","subscribers_url":"https://api.github.com/repos/JGulbronson/rmc/subscribers","subscription_url":"https://api.github.com/repos/JGulbronson/rmc/subscription","commits_url":"https://api.github.com/repos/JGulbronson/rmc/commits{/sha}","git_commits_url":"https://api.github.com/repos/JGulbronson/rmc/git/commits{/sha}","comments_url":"https://api.github.com/repos/JGulbronson/rmc/comments{/number}","issue_comment_url":"https://api.github.com/repos/JGulbronson/rmc/issues/comments{/number}","contents_url":"https://api.github.com/repos/JGulbronson/rmc/contents/{+path}","compare_url":"https://api.github.com/repos/JGulbronson/rmc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JGulbronson/rmc/merges","archive_url":"https://api.github.com/repos/JGulbronson/rmc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JGulbronson/rmc/downloads","issues_url":"https://api.github.com/repos/JGulbronson/rmc/issues{/number}","pulls_url":"https://api.github.com/repos/JGulbronson/rmc/pulls{/number}","milestones_url":"https://api.github.com/repos/JGulbronson/rmc/milestones{/number}","notifications_url":"https://api.github.com/repos/JGulbronson/rmc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JGulbronson/rmc/labels{/name}","releases_url":"https://api.github.com/repos/JGulbronson/rmc/releases{/id}","created_at":"2014-03-28T02:35:56Z","updated_at":"2015-02-23T01:09:04Z","pushed_at":"2015-03-08T17:59:57Z","git_url":"git://github.com/JGulbronson/rmc.git","ssh_url":"git@github.com:JGulbronson/rmc.git","clone_url":"https://github.com/JGulbronson/rmc.git","svn_url":"https://github.com/JGulbronson/rmc","homepage":"http://uwflow.com","size":43754,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"UWFlow:master","ref":"master","sha":"8b496db5c9b612e11efd85befd9f25c094d6c25b","user":{"login":"UWFlow","id":6632953,"avatar_url":"https://avatars.githubusercontent.com/u/6632953?v=3","gravatar_id":"","url":"https://api.github.com/users/UWFlow","html_url":"https://github.com/UWFlow","followers_url":"https://api.github.com/users/UWFlow/followers","following_url":"https://api.github.com/users/UWFlow/following{/other_user}","gists_url":"https://api.github.com/users/UWFlow/gists{/gist_id}","starred_url":"https://api.github.com/users/UWFlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWFlow/subscriptions","organizations_url":"https://api.github.com/users/UWFlow/orgs","repos_url":"https://api.github.com/users/UWFlow/repos","events_url":"https://api.github.com/users/UWFlow/events{/privacy}","received_events_url":"https://api.github.com/users/UWFlow/received_events","type":"Organization","site_admin":false},"repo":{"id":5632437,"name":"rmc","full_name":"UWFlow/rmc","owner":{"login":"UWFlow","id":6632953,"avatar_url":"https://avatars.githubusercontent.com/u/6632953?v=3","gravatar_id":"","url":"https://api.github.com/users/UWFlow","html_url":"https://github.com/UWFlow","followers_url":"https://api.github.com/users/UWFlow/followers","following_url":"https://api.github.com/users/UWFlow/following{/other_user}","gists_url":"https://api.github.com/users/UWFlow/gists{/gist_id}","starred_url":"https://api.github.com/users/UWFlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWFlow/subscriptions","organizations_url":"https://api.github.com/users/UWFlow/orgs","repos_url":"https://api.github.com/users/UWFlow/repos","events_url":"https://api.github.com/users/UWFlow/events{/privacy}","received_events_url":"https://api.github.com/users/UWFlow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UWFlow/rmc","description":"Flow is a website that lets you plan courses with friends.","fork":false,"url":"https://api.github.com/repos/UWFlow/rmc","forks_url":"https://api.github.com/repos/UWFlow/rmc/forks","keys_url":"https://api.github.com/repos/UWFlow/rmc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UWFlow/rmc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UWFlow/rmc/teams","hooks_url":"https://api.github.com/repos/UWFlow/rmc/hooks","issue_events_url":"https://api.github.com/repos/UWFlow/rmc/issues/events{/number}","events_url":"https://api.github.com/repos/UWFlow/rmc/events","assignees_url":"https://api.github.com/repos/UWFlow/rmc/assignees{/user}","branches_url":"https://api.github.com/repos/UWFlow/rmc/branches{/branch}","tags_url":"https://api.github.com/repos/UWFlow/rmc/tags","blobs_url":"https://api.github.com/repos/UWFlow/rmc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UWFlow/rmc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UWFlow/rmc/git/refs{/sha}","trees_url":"https://api.github.com/repos/UWFlow/rmc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UWFlow/rmc/statuses/{sha}","languages_url":"https://api.github.com/repos/UWFlow/rmc/languages","stargazers_url":"https://api.github.com/repos/UWFlow/rmc/stargazers","contributors_url":"https://api.github.com/repos/UWFlow/rmc/contributors","subscribers_url":"https://api.github.com/repos/UWFlow/rmc/subscribers","subscription_url":"https://api.github.com/repos/UWFlow/rmc/subscription","commits_url":"https://api.github.com/repos/UWFlow/rmc/commits{/sha}","git_commits_url":"https://api.github.com/repos/UWFlow/rmc/git/commits{/sha}","comments_url":"https://api.github.com/repos/UWFlow/rmc/comments{/number}","issue_comment_url":"https://api.github.com/repos/UWFlow/rmc/issues/comments{/number}","contents_url":"https://api.github.com/repos/UWFlow/rmc/contents/{+path}","compare_url":"https://api.github.com/repos/UWFlow/rmc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UWFlow/rmc/merges","archive_url":"https://api.github.com/repos/UWFlow/rmc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UWFlow/rmc/downloads","issues_url":"https://api.github.com/repos/UWFlow/rmc/issues{/number}","pulls_url":"https://api.github.com/repos/UWFlow/rmc/pulls{/number}","milestones_url":"https://api.github.com/repos/UWFlow/rmc/milestones{/number}","notifications_url":"https://api.github.com/repos/UWFlow/rmc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UWFlow/rmc/labels{/name}","releases_url":"https://api.github.com/repos/UWFlow/rmc/releases{/id}","created_at":"2012-08-31T18:33:38Z","updated_at":"2015-03-15T16:34:44Z","pushed_at":"2014-12-03T23:27:32Z","git_url":"git://github.com/UWFlow/rmc.git","ssh_url":"git@github.com:UWFlow/rmc.git","clone_url":"https://github.com/UWFlow/rmc.git","svn_url":"https://github.com/UWFlow/rmc","homepage":"https://uwflow.com","size":46370,"stargazers_count":87,"watchers_count":87,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":42,"forks":35,"open_issues":42,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UWFlow/rmc/pulls/223"},"html":{"href":"https://github.com/UWFlow/rmc/pull/223"},"issue":{"href":"https://api.github.com/repos/UWFlow/rmc/issues/223"},"comments":{"href":"https://api.github.com/repos/UWFlow/rmc/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/UWFlow/rmc/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/UWFlow/rmc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UWFlow/rmc/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/UWFlow/rmc/statuses/f8d07e19912f795cae66067bf9196af6a5d4a14a"}}}}