{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-proctoring/pulls/comments/55036011","id":55036011,"diff_hunk":"@@ -1424,7 +1424,7 @@ def _get_timed_exam_view(exam, context, exam_id, user_id, course_id):\n     attempt_status = attempt['status'] if attempt else None\n     has_due_date = True if exam['due_date'] is not None else False\n     if not attempt_status:\n-        if has_due_date_passed(exam['due_date']):\n+        if has_due_date_passed(exam['due_date']) and not _is_self_paced_course(user_id, course_id):","path":"edx_proctoring/api.py","position":14,"original_position":14,"commit_id":"e05667b155a6f52d08ac4b818317629c3d0cfd89","original_commit_id":"e05667b155a6f52d08ac4b818317629c3d0cfd89","user":{"login":"douglashall","id":224634,"avatar_url":"https://avatars.githubusercontent.com/u/224634?v=3","gravatar_id":"","url":"https://api.github.com/users/douglashall","html_url":"https://github.com/douglashall","followers_url":"https://api.github.com/users/douglashall/followers","following_url":"https://api.github.com/users/douglashall/following{/other_user}","gists_url":"https://api.github.com/users/douglashall/gists{/gist_id}","starred_url":"https://api.github.com/users/douglashall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglashall/subscriptions","organizations_url":"https://api.github.com/users/douglashall/orgs","repos_url":"https://api.github.com/users/douglashall/repos","events_url":"https://api.github.com/users/douglashall/events{/privacy}","received_events_url":"https://api.github.com/users/douglashall/received_events","type":"User","site_admin":false},"body":"@afzaledx I think the approach we should take here is to use the due_date from the context object instead.\r\n```\r\nif has_due_date_passed(context['due_date']):\r\n```\r\nWe will also want to replace all references to `exam['due_date']` with `context['due_date']` in this function.","created_at":"2016-03-04T14:32:36Z","updated_at":"2016-03-04T14:32:36Z","html_url":"https://github.com/edx/edx-proctoring/pull/280#discussion_r55036011","pull_request_url":"https://api.github.com/repos/edx/edx-proctoring/pulls/280","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-proctoring/pulls/comments/55036011"},"html":{"href":"https://github.com/edx/edx-proctoring/pull/280#discussion_r55036011"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-proctoring/pulls/280"}}},"pull_request":{"url":"https://api.github.com/repos/edx/edx-proctoring/pulls/280","id":61391441,"html_url":"https://github.com/edx/edx-proctoring/pull/280","diff_url":"https://github.com/edx/edx-proctoring/pull/280.diff","patch_url":"https://github.com/edx/edx-proctoring/pull/280.patch","issue_url":"https://api.github.com/repos/edx/edx-proctoring/issues/280","number":280,"state":"open","locked":false,"title":"fix the bug where timed/proctored exams in Self-Paced Courses obey pr…","user":{"login":"ibrahimahmed443","id":2877755,"avatar_url":"https://avatars.githubusercontent.com/u/2877755?v=3","gravatar_id":"","url":"https://api.github.com/users/ibrahimahmed443","html_url":"https://github.com/ibrahimahmed443","followers_url":"https://api.github.com/users/ibrahimahmed443/followers","following_url":"https://api.github.com/users/ibrahimahmed443/following{/other_user}","gists_url":"https://api.github.com/users/ibrahimahmed443/gists{/gist_id}","starred_url":"https://api.github.com/users/ibrahimahmed443/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibrahimahmed443/subscriptions","organizations_url":"https://api.github.com/users/ibrahimahmed443/orgs","repos_url":"https://api.github.com/users/ibrahimahmed443/repos","events_url":"https://api.github.com/users/ibrahimahmed443/events{/privacy}","received_events_url":"https://api.github.com/users/ibrahimahmed443/received_events","type":"User","site_admin":false},"body":"…evious instructor-paced assignment deadlines","created_at":"2016-03-02T12:14:32Z","updated_at":"2016-03-04T14:32:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b6f7cffda8885cf03a1081372ab4ec85a0b3e72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-proctoring/pulls/280/commits","review_comments_url":"https://api.github.com/repos/edx/edx-proctoring/pulls/280/comments","review_comment_url":"https://api.github.com/repos/edx/edx-proctoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-proctoring/issues/280/comments","statuses_url":"https://api.github.com/repos/edx/edx-proctoring/statuses/e05667b155a6f52d08ac4b818317629c3d0cfd89","head":{"label":"edx:ibrahimahmed443/SOL-1653-self-paced-course-bug","ref":"ibrahimahmed443/SOL-1653-self-paced-course-bug","sha":"e05667b155a6f52d08ac4b818317629c3d0cfd89","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":37069077,"name":"edx-proctoring","full_name":"edx/edx-proctoring","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-proctoring","description":"","fork":false,"url":"https://api.github.com/repos/edx/edx-proctoring","forks_url":"https://api.github.com/repos/edx/edx-proctoring/forks","keys_url":"https://api.github.com/repos/edx/edx-proctoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-proctoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-proctoring/teams","hooks_url":"https://api.github.com/repos/edx/edx-proctoring/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-proctoring/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-proctoring/events","assignees_url":"https://api.github.com/repos/edx/edx-proctoring/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-proctoring/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-proctoring/tags","blobs_url":"https://api.github.com/repos/edx/edx-proctoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-proctoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-proctoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-proctoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-proctoring/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-proctoring/languages","stargazers_url":"https://api.github.com/repos/edx/edx-proctoring/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-proctoring/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-proctoring/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-proctoring/subscription","commits_url":"https://api.github.com/repos/edx/edx-proctoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-proctoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-proctoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-proctoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-proctoring/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-proctoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-proctoring/merges","archive_url":"https://api.github.com/repos/edx/edx-proctoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-proctoring/downloads","issues_url":"https://api.github.com/repos/edx/edx-proctoring/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-proctoring/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-proctoring/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-proctoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-proctoring/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-proctoring/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-proctoring/deployments","created_at":"2015-06-08T13:38:04Z","updated_at":"2016-01-30T07:01:46Z","pushed_at":"2016-03-03T20:34:03Z","git_url":"git://github.com/edx/edx-proctoring.git","ssh_url":"git@github.com:edx/edx-proctoring.git","clone_url":"https://github.com/edx/edx-proctoring.git","svn_url":"https://github.com/edx/edx-proctoring","homepage":null,"size":1169,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":8,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"5e1cd81750025d162995b98a8e8b9c9ec0b83838","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":37069077,"name":"edx-proctoring","full_name":"edx/edx-proctoring","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-proctoring","description":"","fork":false,"url":"https://api.github.com/repos/edx/edx-proctoring","forks_url":"https://api.github.com/repos/edx/edx-proctoring/forks","keys_url":"https://api.github.com/repos/edx/edx-proctoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-proctoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-proctoring/teams","hooks_url":"https://api.github.com/repos/edx/edx-proctoring/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-proctoring/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-proctoring/events","assignees_url":"https://api.github.com/repos/edx/edx-proctoring/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-proctoring/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-proctoring/tags","blobs_url":"https://api.github.com/repos/edx/edx-proctoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-proctoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-proctoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-proctoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-proctoring/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-proctoring/languages","stargazers_url":"https://api.github.com/repos/edx/edx-proctoring/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-proctoring/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-proctoring/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-proctoring/subscription","commits_url":"https://api.github.com/repos/edx/edx-proctoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-proctoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-proctoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-proctoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-proctoring/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-proctoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-proctoring/merges","archive_url":"https://api.github.com/repos/edx/edx-proctoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-proctoring/downloads","issues_url":"https://api.github.com/repos/edx/edx-proctoring/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-proctoring/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-proctoring/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-proctoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-proctoring/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-proctoring/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-proctoring/deployments","created_at":"2015-06-08T13:38:04Z","updated_at":"2016-01-30T07:01:46Z","pushed_at":"2016-03-03T20:34:03Z","git_url":"git://github.com/edx/edx-proctoring.git","ssh_url":"git@github.com:edx/edx-proctoring.git","clone_url":"https://github.com/edx/edx-proctoring.git","svn_url":"https://github.com/edx/edx-proctoring","homepage":null,"size":1169,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-proctoring/pulls/280"},"html":{"href":"https://github.com/edx/edx-proctoring/pull/280"},"issue":{"href":"https://api.github.com/repos/edx/edx-proctoring/issues/280"},"comments":{"href":"https://api.github.com/repos/edx/edx-proctoring/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-proctoring/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-proctoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-proctoring/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-proctoring/statuses/e05667b155a6f52d08ac4b818317629c3d0cfd89"}}}}