payload: {"action":"created","comment":{"url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/comments/270189735","pull_request_review_id":220261512,"id":270189735,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MDE4OTczNQ==","diff_hunk":"@@ -110,6 +111,17 @@ def create_schedule_submit(self):\n             courses = form.getlist('courses')\n             self.schedule.create_schedule(term, term_start_date, term_end_date, term_id, name, room,\n                                                     start_time, end_time, day_of_week, leads, tutors, courses)\n+\n+            d1 = active_semester.startDate\n+            d2 = active_semester.endDate\n+            delta = d2 - d1\n+            for i in range(delta.days + 1):\n+                next_day_of_week = (d1 + timedelta(i)).weekday()\n+                next_date = (d1 + timedelta(i))\n+                if (next_day_of_week == day_of_week - 1 and next_day_of_week != 6) or next_day_of_week == 6 and day_of_week == 0:","path":"sciencelabs/schedule/__init__.py","position":19,"original_position":19,"commit_id":"52ed37789c9d1e5f7666d903c33afdcf9f1550e8","original_commit_id":"52ed37789c9d1e5f7666d903c33afdcf9f1550e8","user":{"login":"bam95899","id":26125143,"node_id":"MDQ6VXNlcjI2MTI1MTQz","avatar_url":"https://avatars2.githubusercontent.com/u/26125143?v=4","gravatar_id":"","url":"https://api.github.com/users/bam95899","html_url":"https://github.com/bam95899","followers_url":"https://api.github.com/users/bam95899/followers","following_url":"https://api.github.com/users/bam95899/following{/other_user}","gists_url":"https://api.github.com/users/bam95899/gists{/gist_id}","starred_url":"https://api.github.com/users/bam95899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bam95899/subscriptions","organizations_url":"https://api.github.com/users/bam95899/orgs","repos_url":"https://api.github.com/users/bam95899/repos","events_url":"https://api.github.com/users/bam95899/events{/privacy}","received_events_url":"https://api.github.com/users/bam95899/received_events","type":"User","site_admin":false},"body":"Im a little confused how modulus could be used here.","created_at":"2019-03-28T20:39:04Z","updated_at":"2019-03-28T20:39:04Z","html_url":"https://github.com/betheluniversity/sciencelabs-python/pull/128#discussion_r270189735","pull_request_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/comments/270189735"},"html":{"href":"https://github.com/betheluniversity/sciencelabs-python/pull/128#discussion_r270189735"},"pull_request":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128"}},"in_reply_to_id":270183628},"pull_request":{"url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128","id":265482153,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY1NDgyMTUz","html_url":"https://github.com/betheluniversity/sciencelabs-python/pull/128","diff_url":"https://github.com/betheluniversity/sciencelabs-python/pull/128.diff","patch_url":"https://github.com/betheluniversity/sciencelabs-python/pull/128.patch","issue_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/128","number":128,"state":"open","locked":false,"title":"made it so creating a schedule creates the subsequent sessions","user":{"login":"bam95899","id":26125143,"node_id":"MDQ6VXNlcjI2MTI1MTQz","avatar_url":"https://avatars2.githubusercontent.com/u/26125143?v=4","gravatar_id":"","url":"https://api.github.com/users/bam95899","html_url":"https://github.com/bam95899","followers_url":"https://api.github.com/users/bam95899/followers","following_url":"https://api.github.com/users/bam95899/following{/other_user}","gists_url":"https://api.github.com/users/bam95899/gists{/gist_id}","starred_url":"https://api.github.com/users/bam95899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bam95899/subscriptions","organizations_url":"https://api.github.com/users/bam95899/orgs","repos_url":"https://api.github.com/users/bam95899/repos","events_url":"https://api.github.com/users/bam95899/events{/privacy}","received_events_url":"https://api.github.com/users/bam95899/received_events","type":"User","site_admin":false},"body":"fixes #126 ","created_at":"2019-03-28T19:58:51Z","updated_at":"2019-03-28T20:39:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"589d9080dcd99f252756858b41a0f86d5b4d4b67","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128/commits","review_comments_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128/comments","review_comment_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/128/comments","statuses_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/statuses/52ed37789c9d1e5f7666d903c33afdcf9f1550e8","head":{"label":"betheluniversity:schedule-sesssion-fix","ref":"schedule-sesssion-fix","sha":"52ed37789c9d1e5f7666d903c33afdcf9f1550e8","user":{"login":"betheluniversity","id":6525328,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjUzMjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6525328?v=4","gravatar_id":"","url":"https://api.github.com/users/betheluniversity","html_url":"https://github.com/betheluniversity","followers_url":"https://api.github.com/users/betheluniversity/followers","following_url":"https://api.github.com/users/betheluniversity/following{/other_user}","gists_url":"https://api.github.com/users/betheluniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/betheluniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betheluniversity/subscriptions","organizations_url":"https://api.github.com/users/betheluniversity/orgs","repos_url":"https://api.github.com/users/betheluniversity/repos","events_url":"https://api.github.com/users/betheluniversity/events{/privacy}","received_events_url":"https://api.github.com/users/betheluniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":137128773,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxMjg3NzM=","name":"sciencelabs-python","full_name":"betheluniversity/sciencelabs-python","private":false,"owner":{"login":"betheluniversity","id":6525328,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjUzMjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6525328?v=4","gravatar_id":"","url":"https://api.github.com/users/betheluniversity","html_url":"https://github.com/betheluniversity","followers_url":"https://api.github.com/users/betheluniversity/followers","following_url":"https://api.github.com/users/betheluniversity/following{/other_user}","gists_url":"https://api.github.com/users/betheluniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/betheluniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betheluniversity/subscriptions","organizations_url":"https://api.github.com/users/betheluniversity/orgs","repos_url":"https://api.github.com/users/betheluniversity/repos","events_url":"https://api.github.com/users/betheluniversity/events{/privacy}","received_events_url":"https://api.github.com/users/betheluniversity/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/betheluniversity/sciencelabs-python","description":null,"fork":false,"url":"https://api.github.com/repos/betheluniversity/sciencelabs-python","forks_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/forks","keys_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/teams","hooks_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/hooks","issue_events_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/events{/number}","events_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/events","assignees_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/assignees{/user}","branches_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/branches{/branch}","tags_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/tags","blobs_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/statuses/{sha}","languages_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/languages","stargazers_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/stargazers","contributors_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/contributors","subscribers_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/subscribers","subscription_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/subscription","commits_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/contents/{+path}","compare_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/merges","archive_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/downloads","issues_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues{/number}","pulls_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls{/number}","milestones_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/milestones{/number}","notifications_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/labels{/name}","releases_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/releases{/id}","deployments_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/deployments","created_at":"2018-06-12T21:17:44Z","updated_at":"2019-03-28T19:21:21Z","pushed_at":"2019-03-28T19:58:52Z","git_url":"git://github.com/betheluniversity/sciencelabs-python.git","ssh_url":"git@github.com:betheluniversity/sciencelabs-python.git","clone_url":"https://github.com/betheluniversity/sciencelabs-python.git","svn_url":"https://github.com/betheluniversity/sciencelabs-python","homepage":null,"size":1540,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"betheluniversity:master","ref":"master","sha":"2099bbd75503af2d87be2360ee501e9d33df4fea","user":{"login":"betheluniversity","id":6525328,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjUzMjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6525328?v=4","gravatar_id":"","url":"https://api.github.com/users/betheluniversity","html_url":"https://github.com/betheluniversity","followers_url":"https://api.github.com/users/betheluniversity/followers","following_url":"https://api.github.com/users/betheluniversity/following{/other_user}","gists_url":"https://api.github.com/users/betheluniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/betheluniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betheluniversity/subscriptions","organizations_url":"https://api.github.com/users/betheluniversity/orgs","repos_url":"https://api.github.com/users/betheluniversity/repos","events_url":"https://api.github.com/users/betheluniversity/events{/privacy}","received_events_url":"https://api.github.com/users/betheluniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":137128773,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxMjg3NzM=","name":"sciencelabs-python","full_name":"betheluniversity/sciencelabs-python","private":false,"owner":{"login":"betheluniversity","id":6525328,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY1MjUzMjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6525328?v=4","gravatar_id":"","url":"https://api.github.com/users/betheluniversity","html_url":"https://github.com/betheluniversity","followers_url":"https://api.github.com/users/betheluniversity/followers","following_url":"https://api.github.com/users/betheluniversity/following{/other_user}","gists_url":"https://api.github.com/users/betheluniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/betheluniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betheluniversity/subscriptions","organizations_url":"https://api.github.com/users/betheluniversity/orgs","repos_url":"https://api.github.com/users/betheluniversity/repos","events_url":"https://api.github.com/users/betheluniversity/events{/privacy}","received_events_url":"https://api.github.com/users/betheluniversity/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/betheluniversity/sciencelabs-python","description":null,"fork":false,"url":"https://api.github.com/repos/betheluniversity/sciencelabs-python","forks_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/forks","keys_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/teams","hooks_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/hooks","issue_events_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/events{/number}","events_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/events","assignees_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/assignees{/user}","branches_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/branches{/branch}","tags_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/tags","blobs_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/statuses/{sha}","languages_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/languages","stargazers_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/stargazers","contributors_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/contributors","subscribers_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/subscribers","subscription_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/subscription","commits_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/contents/{+path}","compare_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/merges","archive_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/downloads","issues_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues{/number}","pulls_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls{/number}","milestones_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/milestones{/number}","notifications_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/labels{/name}","releases_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/releases{/id}","deployments_url":"https://api.github.com/repos/betheluniversity/sciencelabs-python/deployments","created_at":"2018-06-12T21:17:44Z","updated_at":"2019-03-28T19:21:21Z","pushed_at":"2019-03-28T19:58:52Z","git_url":"git://github.com/betheluniversity/sciencelabs-python.git","ssh_url":"git@github.com:betheluniversity/sciencelabs-python.git","clone_url":"https://github.com/betheluniversity/sciencelabs-python.git","svn_url":"https://github.com/betheluniversity/sciencelabs-python","homepage":null,"size":1540,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128"},"html":{"href":"https://github.com/betheluniversity/sciencelabs-python/pull/128"},"issue":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/128"},"comments":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/betheluniversity/sciencelabs-python/statuses/52ed37789c9d1e5f7666d903c33afdcf9f1550e8"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"bam95899"}}