{"action":"created","comment":{"url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/comments/231352366","pull_request_review_id":172306296,"id":231352366,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTM1MjM2Ng==","diff_hunk":"@@ -1,3 +1,25 @@\n UPDATE_DELAY = 86400  # 24 hours in seconds\n UPDATE_DELAY_TESTING = 60  # 1 minute in seconds\n-ASSET_BASE_URL = 'https://raw.githubusercontent.com/cuappdev/assets/master/eatery/'\n+CORNELL_DINING_URL = 'https://now.dining.cornell.edu/api/1.0/dining/eateries.json'\n+GIT_CONTENT_URL = 'https://raw.githubusercontent.com/cuappdev'\n+IMAGES_URL = GIT_CONTENT_URL + '/assets/master/eatery/eatery-images/'\n+STATIC_EATERIES_URL = GIT_CONTENT_URL + '/DiningStack/master/DiningStack/externalEateries.json'\n+PAY_METHODS = {\n+    'brbs': 'Meal Plan - Debit',\n+    'c-card': 'Cornell Card',\n+    'credit': 'Major Credit Cards',\n+    'mobile': 'Mobile Payments',\n+    'swipes': 'Meal Plan - Swipe'\n+}\n+# [M, T, W, Th, F, St, S]\n+# [0, 1, 2, 3, 4, 5, 6]\n+WEEKDAYS = {\n+    'monday-wednesday': [0, 1, 2],\n+    'monday-thursday': [0, 1, 2, 3],\n+    'monday-friday': [0, 1, 2, 3, 4],\n+    'thursday': [3],\n+    'friday': [4],\n+    'saturday': [5],\n+    'sunday': [6]\n+}\n+NUM_DAYS_STORED = 8","path":"constants.py","position":26,"original_position":26,"commit_id":"7487b7a2c3e5b0735fcbd8d0af8eb76ce490ca33","original_commit_id":"7487b7a2c3e5b0735fcbd8d0af8eb76ce490ca33","user":{"login":"cswenberg","id":38736612,"node_id":"MDQ6VXNlcjM4NzM2NjEy","avatar_url":"https://avatars1.githubusercontent.com/u/38736612?v=4","gravatar_id":"","url":"https://api.github.com/users/cswenberg","html_url":"https://github.com/cswenberg","followers_url":"https://api.github.com/users/cswenberg/followers","following_url":"https://api.github.com/users/cswenberg/following{/other_user}","gists_url":"https://api.github.com/users/cswenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/cswenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cswenberg/subscriptions","organizations_url":"https://api.github.com/users/cswenberg/orgs","repos_url":"https://api.github.com/users/cswenberg/repos","events_url":"https://api.github.com/users/cswenberg/events{/privacy}","received_events_url":"https://api.github.com/users/cswenberg/received_events","type":"User","site_admin":false},"body":"Cornell Dining json stores today and the next week of eatery information, so our graphql db stores 8 days worth of information at any point in time","created_at":"2018-11-07T01:11:31Z","updated_at":"2018-11-07T01:11:31Z","html_url":"https://github.com/cuappdev/eatery-backend/pull/19#discussion_r231352366","pull_request_url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/comments/231352366"},"html":{"href":"https://github.com/cuappdev/eatery-backend/pull/19#discussion_r231352366"},"pull_request":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19"}},"in_reply_to_id":231200509},"pull_request":{"url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19","id":228556701,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NTU2NzAx","html_url":"https://github.com/cuappdev/eatery-backend/pull/19","diff_url":"https://github.com/cuappdev/eatery-backend/pull/19.diff","patch_url":"https://github.com/cuappdev/eatery-backend/pull/19.patch","issue_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues/19","number":19,"state":"open","locked":false,"title":"Conversion from DiningStack external eateries to GraphQL","user":{"login":"cswenberg","id":38736612,"node_id":"MDQ6VXNlcjM4NzM2NjEy","avatar_url":"https://avatars1.githubusercontent.com/u/38736612?v=4","gravatar_id":"","url":"https://api.github.com/users/cswenberg","html_url":"https://github.com/cswenberg","followers_url":"https://api.github.com/users/cswenberg/followers","following_url":"https://api.github.com/users/cswenberg/following{/other_user}","gists_url":"https://api.github.com/users/cswenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/cswenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cswenberg/subscriptions","organizations_url":"https://api.github.com/users/cswenberg/orgs","repos_url":"https://api.github.com/users/cswenberg/repos","events_url":"https://api.github.com/users/cswenberg/events{/privacy}","received_events_url":"https://api.github.com/users/cswenberg/received_events","type":"User","site_admin":false},"body":"Added a missing key handler for keys that statics eateries may not have.  Created mechanism for taking external eatery hours and convert to our current graphql style.  Added try-excepts to handle missing information in external eateries. #18 ","created_at":"2018-11-06T02:35:16Z","updated_at":"2018-11-07T01:11:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcf387486b4938c814825c500d4c33c322302d41","assignee":null,"assignees":[],"requested_reviewers":[{"login":"JunyoungLim","id":11675031,"node_id":"MDQ6VXNlcjExNjc1MDMx","avatar_url":"https://avatars3.githubusercontent.com/u/11675031?v=4","gravatar_id":"","url":"https://api.github.com/users/JunyoungLim","html_url":"https://github.com/JunyoungLim","followers_url":"https://api.github.com/users/JunyoungLim/followers","following_url":"https://api.github.com/users/JunyoungLim/following{/other_user}","gists_url":"https://api.github.com/users/JunyoungLim/gists{/gist_id}","starred_url":"https://api.github.com/users/JunyoungLim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunyoungLim/subscriptions","organizations_url":"https://api.github.com/users/JunyoungLim/orgs","repos_url":"https://api.github.com/users/JunyoungLim/repos","events_url":"https://api.github.com/users/JunyoungLim/events{/privacy}","received_events_url":"https://api.github.com/users/JunyoungLim/received_events","type":"User","site_admin":false},{"login":"henrytso","id":31811065,"node_id":"MDQ6VXNlcjMxODExMDY1","avatar_url":"https://avatars0.githubusercontent.com/u/31811065?v=4","gravatar_id":"","url":"https://api.github.com/users/henrytso","html_url":"https://github.com/henrytso","followers_url":"https://api.github.com/users/henrytso/followers","following_url":"https://api.github.com/users/henrytso/following{/other_user}","gists_url":"https://api.github.com/users/henrytso/gists{/gist_id}","starred_url":"https://api.github.com/users/henrytso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrytso/subscriptions","organizations_url":"https://api.github.com/users/henrytso/orgs","repos_url":"https://api.github.com/users/henrytso/repos","events_url":"https://api.github.com/users/henrytso/events{/privacy}","received_events_url":"https://api.github.com/users/henrytso/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19/commits","review_comments_url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19/comments","review_comment_url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues/19/comments","statuses_url":"https://api.github.com/repos/cuappdev/eatery-backend/statuses/7487b7a2c3e5b0735fcbd8d0af8eb76ce490ca33","head":{"label":"cuappdev:conner/static-eateries","ref":"conner/static-eateries","sha":"7487b7a2c3e5b0735fcbd8d0af8eb76ce490ca33","user":{"login":"cuappdev","id":17533691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTMzNjkx","avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":152356455,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNTY0NTU=","name":"eatery-backend","full_name":"cuappdev/eatery-backend","private":false,"owner":{"login":"cuappdev","id":17533691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTMzNjkx","avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cuappdev/eatery-backend","description":"An open-sourced backend for the Eatery application, available on Android and iOS.","fork":false,"url":"https://api.github.com/repos/cuappdev/eatery-backend","forks_url":"https://api.github.com/repos/cuappdev/eatery-backend/forks","keys_url":"https://api.github.com/repos/cuappdev/eatery-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/eatery-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/eatery-backend/teams","hooks_url":"https://api.github.com/repos/cuappdev/eatery-backend/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/eatery-backend/events","assignees_url":"https://api.github.com/repos/cuappdev/eatery-backend/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/eatery-backend/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/eatery-backend/tags","blobs_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/eatery-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/eatery-backend/languages","stargazers_url":"https://api.github.com/repos/cuappdev/eatery-backend/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/eatery-backend/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/eatery-backend/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/eatery-backend/subscription","commits_url":"https://api.github.com/repos/cuappdev/eatery-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/eatery-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/eatery-backend/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/eatery-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/eatery-backend/merges","archive_url":"https://api.github.com/repos/cuappdev/eatery-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/eatery-backend/downloads","issues_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/eatery-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/eatery-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/eatery-backend/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/eatery-backend/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/eatery-backend/deployments","created_at":"2018-10-10T03:16:21Z","updated_at":"2018-11-04T19:44:18Z","pushed_at":"2018-11-06T15:37:02Z","git_url":"git://github.com/cuappdev/eatery-backend.git","ssh_url":"git@github.com:cuappdev/eatery-backend.git","clone_url":"https://github.com/cuappdev/eatery-backend.git","svn_url":"https://github.com/cuappdev/eatery-backend","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"Python","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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"cuappdev:master","ref":"master","sha":"292b728782e95a754a2caf442d308b5731686c98","user":{"login":"cuappdev","id":17533691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTMzNjkx","avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":152356455,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNTY0NTU=","name":"eatery-backend","full_name":"cuappdev/eatery-backend","private":false,"owner":{"login":"cuappdev","id":17533691,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTMzNjkx","avatar_url":"https://avatars0.githubusercontent.com/u/17533691?v=4","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cuappdev/eatery-backend","description":"An open-sourced backend for the Eatery application, available on Android and iOS.","fork":false,"url":"https://api.github.com/repos/cuappdev/eatery-backend","forks_url":"https://api.github.com/repos/cuappdev/eatery-backend/forks","keys_url":"https://api.github.com/repos/cuappdev/eatery-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/eatery-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/eatery-backend/teams","hooks_url":"https://api.github.com/repos/cuappdev/eatery-backend/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/eatery-backend/events","assignees_url":"https://api.github.com/repos/cuappdev/eatery-backend/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/eatery-backend/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/eatery-backend/tags","blobs_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/eatery-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/eatery-backend/languages","stargazers_url":"https://api.github.com/repos/cuappdev/eatery-backend/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/eatery-backend/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/eatery-backend/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/eatery-backend/subscription","commits_url":"https://api.github.com/repos/cuappdev/eatery-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/eatery-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/eatery-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/eatery-backend/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/eatery-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/eatery-backend/merges","archive_url":"https://api.github.com/repos/cuappdev/eatery-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/eatery-backend/downloads","issues_url":"https://api.github.com/repos/cuappdev/eatery-backend/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/eatery-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/eatery-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/eatery-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/eatery-backend/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/eatery-backend/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/eatery-backend/deployments","created_at":"2018-10-10T03:16:21Z","updated_at":"2018-11-04T19:44:18Z","pushed_at":"2018-11-06T15:37:02Z","git_url":"git://github.com/cuappdev/eatery-backend.git","ssh_url":"git@github.com:cuappdev/eatery-backend.git","clone_url":"https://github.com/cuappdev/eatery-backend.git","svn_url":"https://github.com/cuappdev/eatery-backend","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"Python","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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19"},"html":{"href":"https://github.com/cuappdev/eatery-backend/pull/19"},"issue":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/issues/19"},"comments":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/cuappdev/eatery-backend/statuses/7487b7a2c3e5b0735fcbd8d0af8eb76ce490ca33"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cswenberg"}}