{"action":"opened","number":148,"pull_request":{"url":"https://api.github.com/repos/semcomp/semcomp-next/pulls/148","id":34411216,"html_url":"https://github.com/semcomp/semcomp-next/pull/148","diff_url":"https://github.com/semcomp/semcomp-next/pull/148.diff","patch_url":"https://github.com/semcomp/semcomp-next/pull/148.patch","issue_url":"https://api.github.com/repos/semcomp/semcomp-next/issues/148","number":148,"state":"open","locked":false,"title":"Conserta bug: não escrevia presença","user":{"login":"fcoelho","id":44905,"avatar_url":"https://avatars.githubusercontent.com/u/44905?v=3","gravatar_id":"","url":"https://api.github.com/users/fcoelho","html_url":"https://github.com/fcoelho","followers_url":"https://api.github.com/users/fcoelho/followers","following_url":"https://api.github.com/users/fcoelho/following{/other_user}","gists_url":"https://api.github.com/users/fcoelho/gists{/gist_id}","starred_url":"https://api.github.com/users/fcoelho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcoelho/subscriptions","organizations_url":"https://api.github.com/users/fcoelho/orgs","repos_url":"https://api.github.com/users/fcoelho/repos","events_url":"https://api.github.com/users/fcoelho/events{/privacy}","received_events_url":"https://api.github.com/users/fcoelho/received_events","type":"User","site_admin":false},"body":"O commit 2a09e619c72e2561ef79f6075d0485fa40a29920 apagou uma linha do\r\narquivo `attendance.py` que era a linha responsável por escrever de\r\nverdade o arquivo pdf/xls com as presenças. A linha original era essa:\r\n\r\n    report = globals()['write_report_' + report_type](output, headers, data)\r\n\r\nA variável `report` não estava sendo usada em lugar nenhum, e por isso o\r\nflake8 achou que essa linha não servia pra nada. Eu a removi sem querer\r\nlogo em seguida.\r\n\r\nEssa linha também estava um tanto obscura. Funcionava mas não era\r\nexatamente clara e exceto por condensar várias possibilidades em uma só\r\nexpressão, não tinha nenhum outro benefício. Então além de recuperar a\r\nfuncionalidade perdida, reescrevi como uma sequência de `if`s para ficar\r\nclaro o que está acontecendo.","created_at":"2015-04-29T22:07:34Z","updated_at":"2015-04-29T22:07:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/semcomp/semcomp-next/pulls/148/commits","review_comments_url":"https://api.github.com/repos/semcomp/semcomp-next/pulls/148/comments","review_comment_url":"https://api.github.com/repos/semcomp/semcomp-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/semcomp/semcomp-next/issues/148/comments","statuses_url":"https://api.github.com/repos/semcomp/semcomp-next/statuses/1111c48582bfdba833c2bac5a66f088b1cc86b87","head":{"label":"semcomp:fix-missing-reports","ref":"fix-missing-reports","sha":"1111c48582bfdba833c2bac5a66f088b1cc86b87","user":{"login":"semcomp","id":8671073,"avatar_url":"https://avatars.githubusercontent.com/u/8671073?v=3","gravatar_id":"","url":"https://api.github.com/users/semcomp","html_url":"https://github.com/semcomp","followers_url":"https://api.github.com/users/semcomp/followers","following_url":"https://api.github.com/users/semcomp/following{/other_user}","gists_url":"https://api.github.com/users/semcomp/gists{/gist_id}","starred_url":"https://api.github.com/users/semcomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semcomp/subscriptions","organizations_url":"https://api.github.com/users/semcomp/orgs","repos_url":"https://api.github.com/users/semcomp/repos","events_url":"https://api.github.com/users/semcomp/events{/privacy}","received_events_url":"https://api.github.com/users/semcomp/received_events","type":"Organization","site_admin":false},"repo":{"id":14994471,"name":"semcomp-next","full_name":"semcomp/semcomp-next","owner":{"login":"semcomp","id":8671073,"avatar_url":"https://avatars.githubusercontent.com/u/8671073?v=3","gravatar_id":"","url":"https://api.github.com/users/semcomp","html_url":"https://github.com/semcomp","followers_url":"https://api.github.com/users/semcomp/followers","following_url":"https://api.github.com/users/semcomp/following{/other_user}","gists_url":"https://api.github.com/users/semcomp/gists{/gist_id}","starred_url":"https://api.github.com/users/semcomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semcomp/subscriptions","organizations_url":"https://api.github.com/users/semcomp/orgs","repos_url":"https://api.github.com/users/semcomp/repos","events_url":"https://api.github.com/users/semcomp/events{/privacy}","received_events_url":"https://api.github.com/users/semcomp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/semcomp/semcomp-next","description":"Site da Semcomp","fork":false,"url":"https://api.github.com/repos/semcomp/semcomp-next","forks_url":"https://api.github.com/repos/semcomp/semcomp-next/forks","keys_url":"https://api.github.com/repos/semcomp/semcomp-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/semcomp/semcomp-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/semcomp/semcomp-next/teams","hooks_url":"https://api.github.com/repos/semcomp/semcomp-next/hooks","issue_events_url":"https://api.github.com/repos/semcomp/semcomp-next/issues/events{/number}","events_url":"https://api.github.com/repos/semcomp/semcomp-next/events","assignees_url":"https://api.github.com/repos/semcomp/semcomp-next/assignees{/user}","branches_url":"https://api.github.com/repos/semcomp/semcomp-next/branches{/branch}","tags_url":"https://api.github.com/repos/semcomp/semcomp-next/tags","blobs_url":"https://api.github.com/repos/semcomp/semcomp-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/semcomp/semcomp-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/semcomp/semcomp-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/semcomp/semcomp-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/semcomp/semcomp-next/statuses/{sha}","languages_url":"https://api.github.com/repos/semcomp/semcomp-next/languages","stargazers_url":"https://api.github.com/repos/semcomp/semcomp-next/stargazers","contributors_url":"https://api.github.com/repos/semcomp/semcomp-next/contributors","subscribers_url":"https://api.github.com/repos/semcomp/semcomp-next/subscribers","subscription_url":"https://api.github.com/repos/semcomp/semcomp-next/subscription","commits_url":"https://api.github.com/repos/semcomp/semcomp-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/semcomp/semcomp-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/semcomp/semcomp-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/semcomp/semcomp-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/semcomp/semcomp-next/contents/{+path}","compare_url":"https://api.github.com/repos/semcomp/semcomp-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/semcomp/semcomp-next/merges","archive_url":"https://api.github.com/repos/semcomp/semcomp-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/semcomp/semcomp-next/downloads","issues_url":"https://api.github.com/repos/semcomp/semcomp-next/issues{/number}","pulls_url":"https://api.github.com/repos/semcomp/semcomp-next/pulls{/number}","milestones_url":"https://api.github.com/repos/semcomp/semcomp-next/milestones{/number}","notifications_url":"https://api.github.com/repos/semcomp/semcomp-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/semcomp/semcomp-next/labels{/name}","releases_url":"https://api.github.com/repos/semcomp/semcomp-next/releases{/id}","created_at":"2013-12-06T21:57:29Z","updated_at":"2015-04-22T17:26:09Z","pushed_at":"2015-04-29T22:07:34Z","git_url":"git://github.com/semcomp/semcomp-next.git","ssh_url":"git@github.com:semcomp/semcomp-next.git","clone_url":"https://github.com/semcomp/semcomp-next.git","svn_url":"https://github.com/semcomp/semcomp-next","homepage":null,"size":6307,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":33,"forks":3,"open_issues":33,"watchers":0,"default_branch":"master"}},"base":{"label":"semcomp:master","ref":"master","sha":"4f7d2184590c6b1d1f6a52509b3c7915696b748c","user":{"login":"semcomp","id":8671073,"avatar_url":"https://avatars.githubusercontent.com/u/8671073?v=3","gravatar_id":"","url":"https://api.github.com/users/semcomp","html_url":"https://github.com/semcomp","followers_url":"https://api.github.com/users/semcomp/followers","following_url":"https://api.github.com/users/semcomp/following{/other_user}","gists_url":"https://api.github.com/users/semcomp/gists{/gist_id}","starred_url":"https://api.github.com/users/semcomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semcomp/subscriptions","organizations_url":"https://api.github.com/users/semcomp/orgs","repos_url":"https://api.github.com/users/semcomp/repos","events_url":"https://api.github.com/users/semcomp/events{/privacy}","received_events_url":"https://api.github.com/users/semcomp/received_events","type":"Organization","site_admin":false},"repo":{"id":14994471,"name":"semcomp-next","full_name":"semcomp/semcomp-next","owner":{"login":"semcomp","id":8671073,"avatar_url":"https://avatars.githubusercontent.com/u/8671073?v=3","gravatar_id":"","url":"https://api.github.com/users/semcomp","html_url":"https://github.com/semcomp","followers_url":"https://api.github.com/users/semcomp/followers","following_url":"https://api.github.com/users/semcomp/following{/other_user}","gists_url":"https://api.github.com/users/semcomp/gists{/gist_id}","starred_url":"https://api.github.com/users/semcomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semcomp/subscriptions","organizations_url":"https://api.github.com/users/semcomp/orgs","repos_url":"https://api.github.com/users/semcomp/repos","events_url":"https://api.github.com/users/semcomp/events{/privacy}","received_events_url":"https://api.github.com/users/semcomp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/semcomp/semcomp-next","description":"Site da Semcomp","fork":false,"url":"https://api.github.com/repos/semcomp/semcomp-next","forks_url":"https://api.github.com/repos/semcomp/semcomp-next/forks","keys_url":"https://api.github.com/repos/semcomp/semcomp-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/semcomp/semcomp-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/semcomp/semcomp-next/teams","hooks_url":"https://api.github.com/repos/semcomp/semcomp-next/hooks","issue_events_url":"https://api.github.com/repos/semcomp/semcomp-next/issues/events{/number}","events_url":"https://api.github.com/repos/semcomp/semcomp-next/events","assignees_url":"https://api.github.com/repos/semcomp/semcomp-next/assignees{/user}","branches_url":"https://api.github.com/repos/semcomp/semcomp-next/branches{/branch}","tags_url":"https://api.github.com/repos/semcomp/semcomp-next/tags","blobs_url":"https://api.github.com/repos/semcomp/semcomp-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/semcomp/semcomp-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/semcomp/semcomp-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/semcomp/semcomp-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/semcomp/semcomp-next/statuses/{sha}","languages_url":"https://api.github.com/repos/semcomp/semcomp-next/languages","stargazers_url":"https://api.github.com/repos/semcomp/semcomp-next/stargazers","contributors_url":"https://api.github.com/repos/semcomp/semcomp-next/contributors","subscribers_url":"https://api.github.com/repos/semcomp/semcomp-next/subscribers","subscription_url":"https://api.github.com/repos/semcomp/semcomp-next/subscription","commits_url":"https://api.github.com/repos/semcomp/semcomp-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/semcomp/semcomp-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/semcomp/semcomp-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/semcomp/semcomp-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/semcomp/semcomp-next/contents/{+path}","compare_url":"https://api.github.com/repos/semcomp/semcomp-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/semcomp/semcomp-next/merges","archive_url":"https://api.github.com/repos/semcomp/semcomp-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/semcomp/semcomp-next/downloads","issues_url":"https://api.github.com/repos/semcomp/semcomp-next/issues{/number}","pulls_url":"https://api.github.com/repos/semcomp/semcomp-next/pulls{/number}","milestones_url":"https://api.github.com/repos/semcomp/semcomp-next/milestones{/number}","notifications_url":"https://api.github.com/repos/semcomp/semcomp-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/semcomp/semcomp-next/labels{/name}","releases_url":"https://api.github.com/repos/semcomp/semcomp-next/releases{/id}","created_at":"2013-12-06T21:57:29Z","updated_at":"2015-04-22T17:26:09Z","pushed_at":"2015-04-29T22:07:34Z","git_url":"git://github.com/semcomp/semcomp-next.git","ssh_url":"git@github.com:semcomp/semcomp-next.git","clone_url":"https://github.com/semcomp/semcomp-next.git","svn_url":"https://github.com/semcomp/semcomp-next","homepage":null,"size":6307,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":33,"forks":3,"open_issues":33,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/semcomp/semcomp-next/pulls/148"},"html":{"href":"https://github.com/semcomp/semcomp-next/pull/148"},"issue":{"href":"https://api.github.com/repos/semcomp/semcomp-next/issues/148"},"comments":{"href":"https://api.github.com/repos/semcomp/semcomp-next/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/semcomp/semcomp-next/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/semcomp/semcomp-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/semcomp/semcomp-next/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/semcomp/semcomp-next/statuses/1111c48582bfdba833c2bac5a66f088b1cc86b87"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":0,"changed_files":1}}