{"action":"created","comment":{"url":"https://api.github.com/repos/magfest/panels/pulls/comments/95048559","pull_request_review_id":15595567,"id":95048559,"diff_hunk":"@@ -231,3 +231,26 @@ def everything(self, out, session):\n                 ' / '.join(app.tech_needs_labels) + (' / ' if app.other_tech_needs else '') + app.other_tech_needs,\n                 app.applied.strftime('%Y-%m-%d')\n             ] + panelists)\n+\n+    def staff_schedule(self, session, attendee_id):\n+        attendee = session.attendee(attendee_id)\n+        events = defaultdict(lambda: defaultdict(lambda: (1, '')))\n+        for pa in attendee.panel_applications:\n+            if pa.event is not None:\n+                for timeslot in pa.event.half_hours:\n+                    rowspan = pa.event.duration if timeslot == pa.event.start_time else 0\n+                    events[timeslot][pa.event.location_label] = (rowspan, pa.event.name)\n+\n+        schedule = []\n+        locations = sorted(set(sum([list(locations) for locations in events.values()], [])))\n+        if events:\n+            when = min(events)","path":"panels/site_sections/panel_app_management.py","position":17,"original_position":17,"commit_id":"4517a949825e452b90867611b4518574722965b5","original_commit_id":"4517a949825e452b90867611b4518574722965b5","user":{"login":"kitsuta","id":7198215,"avatar_url":"https://avatars.githubusercontent.com/u/7198215?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsuta","html_url":"https://github.com/kitsuta","followers_url":"https://api.github.com/users/kitsuta/followers","following_url":"https://api.github.com/users/kitsuta/following{/other_user}","gists_url":"https://api.github.com/users/kitsuta/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsuta/subscriptions","organizations_url":"https://api.github.com/users/kitsuta/orgs","repos_url":"https://api.github.com/users/kitsuta/repos","events_url":"https://api.github.com/users/kitsuta/events{/privacy}","received_events_url":"https://api.github.com/users/kitsuta/received_events","type":"User","site_admin":false},"body":"This is a bit minor, but `events` implies a list of \"things\" but `when` is a measure of time. I'm not actually sure what kind of thing is supposed to be in the `events` dict from reading this code. Maybe a better name is `event_times`?","created_at":"2017-01-07T01:45:17Z","updated_at":"2017-01-07T01:49:09Z","html_url":"https://github.com/magfest/panels/pull/72#discussion_r95048559","pull_request_url":"https://api.github.com/repos/magfest/panels/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/magfest/panels/pulls/comments/95048559"},"html":{"href":"https://github.com/magfest/panels/pull/72#discussion_r95048559"},"pull_request":{"href":"https://api.github.com/repos/magfest/panels/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/magfest/panels/pulls/72","id":100551953,"html_url":"https://github.com/magfest/panels/pull/72","diff_url":"https://github.com/magfest/panels/pull/72.diff","patch_url":"https://github.com/magfest/panels/pull/72.patch","issue_url":"https://api.github.com/repos/magfest/panels/issues/72","number":72,"state":"open","locked":false,"title":"Fixes #66","user":{"login":"Bjfitzpatrick","id":16483669,"avatar_url":"https://avatars.githubusercontent.com/u/16483669?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjfitzpatrick","html_url":"https://github.com/Bjfitzpatrick","followers_url":"https://api.github.com/users/Bjfitzpatrick/followers","following_url":"https://api.github.com/users/Bjfitzpatrick/following{/other_user}","gists_url":"https://api.github.com/users/Bjfitzpatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjfitzpatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjfitzpatrick/subscriptions","organizations_url":"https://api.github.com/users/Bjfitzpatrick/orgs","repos_url":"https://api.github.com/users/Bjfitzpatrick/repos","events_url":"https://api.github.com/users/Bjfitzpatrick/events{/privacy}","received_events_url":"https://api.github.com/users/Bjfitzpatrick/received_events","type":"User","site_admin":false},"body":"Fixes #66 ","created_at":"2017-01-07T01:19:53Z","updated_at":"2017-01-07T01:49:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a55730f2a86435e5861b4db0e7a2f7a6d16de9c3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/magfest/panels/pulls/72/commits","review_comments_url":"https://api.github.com/repos/magfest/panels/pulls/72/comments","review_comment_url":"https://api.github.com/repos/magfest/panels/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magfest/panels/issues/72/comments","statuses_url":"https://api.github.com/repos/magfest/panels/statuses/4517a949825e452b90867611b4518574722965b5","head":{"label":"Lusarien:PANELS#66","ref":"PANELS#66","sha":"4517a949825e452b90867611b4518574722965b5","user":{"login":"Lusarien","id":5368158,"avatar_url":"https://avatars.githubusercontent.com/u/5368158?v=3","gravatar_id":"","url":"https://api.github.com/users/Lusarien","html_url":"https://github.com/Lusarien","followers_url":"https://api.github.com/users/Lusarien/followers","following_url":"https://api.github.com/users/Lusarien/following{/other_user}","gists_url":"https://api.github.com/users/Lusarien/gists{/gist_id}","starred_url":"https://api.github.com/users/Lusarien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lusarien/subscriptions","organizations_url":"https://api.github.com/users/Lusarien/orgs","repos_url":"https://api.github.com/users/Lusarien/repos","events_url":"https://api.github.com/users/Lusarien/events{/privacy}","received_events_url":"https://api.github.com/users/Lusarien/received_events","type":"User","site_admin":false},"repo":{"id":78177245,"name":"panels","full_name":"Lusarien/panels","owner":{"login":"Lusarien","id":5368158,"avatar_url":"https://avatars.githubusercontent.com/u/5368158?v=3","gravatar_id":"","url":"https://api.github.com/users/Lusarien","html_url":"https://github.com/Lusarien","followers_url":"https://api.github.com/users/Lusarien/followers","following_url":"https://api.github.com/users/Lusarien/following{/other_user}","gists_url":"https://api.github.com/users/Lusarien/gists{/gist_id}","starred_url":"https://api.github.com/users/Lusarien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lusarien/subscriptions","organizations_url":"https://api.github.com/users/Lusarien/orgs","repos_url":"https://api.github.com/users/Lusarien/repos","events_url":"https://api.github.com/users/Lusarien/events{/privacy}","received_events_url":"https://api.github.com/users/Lusarien/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lusarien/panels","description":"Plugin for managing panel applications and scheduling","fork":true,"url":"https://api.github.com/repos/Lusarien/panels","forks_url":"https://api.github.com/repos/Lusarien/panels/forks","keys_url":"https://api.github.com/repos/Lusarien/panels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lusarien/panels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lusarien/panels/teams","hooks_url":"https://api.github.com/repos/Lusarien/panels/hooks","issue_events_url":"https://api.github.com/repos/Lusarien/panels/issues/events{/number}","events_url":"https://api.github.com/repos/Lusarien/panels/events","assignees_url":"https://api.github.com/repos/Lusarien/panels/assignees{/user}","branches_url":"https://api.github.com/repos/Lusarien/panels/branches{/branch}","tags_url":"https://api.github.com/repos/Lusarien/panels/tags","blobs_url":"https://api.github.com/repos/Lusarien/panels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lusarien/panels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lusarien/panels/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lusarien/panels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lusarien/panels/statuses/{sha}","languages_url":"https://api.github.com/repos/Lusarien/panels/languages","stargazers_url":"https://api.github.com/repos/Lusarien/panels/stargazers","contributors_url":"https://api.github.com/repos/Lusarien/panels/contributors","subscribers_url":"https://api.github.com/repos/Lusarien/panels/subscribers","subscription_url":"https://api.github.com/repos/Lusarien/panels/subscription","commits_url":"https://api.github.com/repos/Lusarien/panels/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lusarien/panels/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lusarien/panels/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lusarien/panels/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lusarien/panels/contents/{+path}","compare_url":"https://api.github.com/repos/Lusarien/panels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lusarien/panels/merges","archive_url":"https://api.github.com/repos/Lusarien/panels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lusarien/panels/downloads","issues_url":"https://api.github.com/repos/Lusarien/panels/issues{/number}","pulls_url":"https://api.github.com/repos/Lusarien/panels/pulls{/number}","milestones_url":"https://api.github.com/repos/Lusarien/panels/milestones{/number}","notifications_url":"https://api.github.com/repos/Lusarien/panels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lusarien/panels/labels{/name}","releases_url":"https://api.github.com/repos/Lusarien/panels/releases{/id}","deployments_url":"https://api.github.com/repos/Lusarien/panels/deployments","created_at":"2017-01-06T05:37:23Z","updated_at":"2017-01-06T05:37:26Z","pushed_at":"2017-01-07T01:19:18Z","git_url":"git://github.com/Lusarien/panels.git","ssh_url":"git@github.com:Lusarien/panels.git","clone_url":"https://github.com/Lusarien/panels.git","svn_url":"https://github.com/Lusarien/panels","homepage":null,"size":129,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"magfest:master","ref":"master","sha":"3d349ca4b3c001d633392d05db996f77d5a6d436","user":{"login":"magfest","id":7840140,"avatar_url":"https://avatars.githubusercontent.com/u/7840140?v=3","gravatar_id":"","url":"https://api.github.com/users/magfest","html_url":"https://github.com/magfest","followers_url":"https://api.github.com/users/magfest/followers","following_url":"https://api.github.com/users/magfest/following{/other_user}","gists_url":"https://api.github.com/users/magfest/gists{/gist_id}","starred_url":"https://api.github.com/users/magfest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magfest/subscriptions","organizations_url":"https://api.github.com/users/magfest/orgs","repos_url":"https://api.github.com/users/magfest/repos","events_url":"https://api.github.com/users/magfest/events{/privacy}","received_events_url":"https://api.github.com/users/magfest/received_events","type":"Organization","site_admin":false},"repo":{"id":41639730,"name":"panels","full_name":"magfest/panels","owner":{"login":"magfest","id":7840140,"avatar_url":"https://avatars.githubusercontent.com/u/7840140?v=3","gravatar_id":"","url":"https://api.github.com/users/magfest","html_url":"https://github.com/magfest","followers_url":"https://api.github.com/users/magfest/followers","following_url":"https://api.github.com/users/magfest/following{/other_user}","gists_url":"https://api.github.com/users/magfest/gists{/gist_id}","starred_url":"https://api.github.com/users/magfest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magfest/subscriptions","organizations_url":"https://api.github.com/users/magfest/orgs","repos_url":"https://api.github.com/users/magfest/repos","events_url":"https://api.github.com/users/magfest/events{/privacy}","received_events_url":"https://api.github.com/users/magfest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magfest/panels","description":"Plugin for managing panel applications and scheduling","fork":false,"url":"https://api.github.com/repos/magfest/panels","forks_url":"https://api.github.com/repos/magfest/panels/forks","keys_url":"https://api.github.com/repos/magfest/panels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magfest/panels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magfest/panels/teams","hooks_url":"https://api.github.com/repos/magfest/panels/hooks","issue_events_url":"https://api.github.com/repos/magfest/panels/issues/events{/number}","events_url":"https://api.github.com/repos/magfest/panels/events","assignees_url":"https://api.github.com/repos/magfest/panels/assignees{/user}","branches_url":"https://api.github.com/repos/magfest/panels/branches{/branch}","tags_url":"https://api.github.com/repos/magfest/panels/tags","blobs_url":"https://api.github.com/repos/magfest/panels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magfest/panels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magfest/panels/git/refs{/sha}","trees_url":"https://api.github.com/repos/magfest/panels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magfest/panels/statuses/{sha}","languages_url":"https://api.github.com/repos/magfest/panels/languages","stargazers_url":"https://api.github.com/repos/magfest/panels/stargazers","contributors_url":"https://api.github.com/repos/magfest/panels/contributors","subscribers_url":"https://api.github.com/repos/magfest/panels/subscribers","subscription_url":"https://api.github.com/repos/magfest/panels/subscription","commits_url":"https://api.github.com/repos/magfest/panels/commits{/sha}","git_commits_url":"https://api.github.com/repos/magfest/panels/git/commits{/sha}","comments_url":"https://api.github.com/repos/magfest/panels/comments{/number}","issue_comment_url":"https://api.github.com/repos/magfest/panels/issues/comments{/number}","contents_url":"https://api.github.com/repos/magfest/panels/contents/{+path}","compare_url":"https://api.github.com/repos/magfest/panels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magfest/panels/merges","archive_url":"https://api.github.com/repos/magfest/panels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magfest/panels/downloads","issues_url":"https://api.github.com/repos/magfest/panels/issues{/number}","pulls_url":"https://api.github.com/repos/magfest/panels/pulls{/number}","milestones_url":"https://api.github.com/repos/magfest/panels/milestones{/number}","notifications_url":"https://api.github.com/repos/magfest/panels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magfest/panels/labels{/name}","releases_url":"https://api.github.com/repos/magfest/panels/releases{/id}","deployments_url":"https://api.github.com/repos/magfest/panels/deployments","created_at":"2015-08-30T19:06:29Z","updated_at":"2016-01-14T05:59:39Z","pushed_at":"2017-01-07T01:19:54Z","git_url":"git://github.com/magfest/panels.git","ssh_url":"git@github.com:magfest/panels.git","clone_url":"https://github.com/magfest/panels.git","svn_url":"https://github.com/magfest/panels","homepage":null,"size":129,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magfest/panels/pulls/72"},"html":{"href":"https://github.com/magfest/panels/pull/72"},"issue":{"href":"https://api.github.com/repos/magfest/panels/issues/72"},"comments":{"href":"https://api.github.com/repos/magfest/panels/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/magfest/panels/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/magfest/panels/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magfest/panels/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/magfest/panels/statuses/4517a949825e452b90867611b4518574722965b5"}}}}
{"actor":{"display_login":"kitsuta"}}