{"action":"created","comment":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/comments/57456159","id":57456159,"diff_hunk":"@@ -80,6 +82,17 @@ def clear_cache(self):\n             if self.config['debug']:\n                 syslog(LOG_INFO, 'clearing cache for method {}'.format(meth))\n \n+    def set_updated(self):\n+        \"\"\"\n+        Mark the module as updated\n+        \"\"\"\n+        self.py3_wrapper.notify_update(self.module_full_name)\n+\n+    def get_latest(self):\n+        for method in self.methods.values():\n+            output = method['last_output']\n+        return output","path":"py3status/module.py","position":24,"original_position":24,"commit_id":"979c765ea2c443970c7fdc4d37fbe64c037af030","original_commit_id":"979c765ea2c443970c7fdc4d37fbe64c037af030","user":{"login":"tobes","id":56311,"avatar_url":"https://avatars.githubusercontent.com/u/56311?v=3","gravatar_id":"","url":"https://api.github.com/users/tobes","html_url":"https://github.com/tobes","followers_url":"https://api.github.com/users/tobes/followers","following_url":"https://api.github.com/users/tobes/following{/other_user}","gists_url":"https://api.github.com/users/tobes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobes/subscriptions","organizations_url":"https://api.github.com/users/tobes/orgs","repos_url":"https://api.github.com/users/tobes/repos","events_url":"https://api.github.com/users/tobes/events{/privacy}","received_events_url":"https://api.github.com/users/tobes/received_events","type":"User","site_admin":false},"body":"ahh,\r\n\r\nI thought it did that but looking at the code it looks like modules can have multiple responses showing. I'll make the changes for that when I get the chance.\r\n\r\nYou are very thorough with you code reviews, which is great! ","created_at":"2016-03-25T15:44:59Z","updated_at":"2016-03-25T15:44:59Z","html_url":"https://github.com/ultrabug/py3status/pull/214#discussion_r57456159","pull_request_url":"https://api.github.com/repos/ultrabug/py3status/pulls/214","_links":{"self":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/comments/57456159"},"html":{"href":"https://github.com/ultrabug/py3status/pull/214#discussion_r57456159"},"pull_request":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/214","id":63233430,"html_url":"https://github.com/ultrabug/py3status/pull/214","diff_url":"https://github.com/ultrabug/py3status/pull/214.diff","patch_url":"https://github.com/ultrabug/py3status/pull/214.patch","issue_url":"https://api.github.com/repos/ultrabug/py3status/issues/214","number":214,"state":"open","locked":false,"title":"'Speedy' branch","user":{"login":"tobes","id":56311,"avatar_url":"https://avatars.githubusercontent.com/u/56311?v=3","gravatar_id":"","url":"https://api.github.com/users/tobes","html_url":"https://github.com/tobes","followers_url":"https://api.github.com/users/tobes/followers","following_url":"https://api.github.com/users/tobes/following{/other_user}","gists_url":"https://api.github.com/users/tobes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobes/subscriptions","organizations_url":"https://api.github.com/users/tobes/orgs","repos_url":"https://api.github.com/users/tobes/repos","events_url":"https://api.github.com/users/tobes/events{/privacy}","received_events_url":"https://api.github.com/users/tobes/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nThis pull request does the following:\r\n\r\n* move non `i3status` stuff out of `i3status.py` still more to be done.\r\n\r\n* hopefully makes the code a little easier to  follow.\r\n\r\n* adds a `check_update` helper to see when modules/i3status need updating.\r\n\r\n* reduce the general cpu workload.\r\n\r\n```\r\n$ git checkout master\r\nSwitched to branch 'master'\r\nYour branch is up-to-date with 'origin/master'.\r\n$ time timeout -sHUP 10m  py3status -c ~/.i3/i3status.conf > /dev/null\r\n\r\nreal\t10m0.007s\r\nuser\t0m7.822s\r\nsys \t0m2.089s\r\n$ git checkout speedy\r\nSwitched to branch 'speedy'\r\nYour branch is up-to-date with 'origin/speedy'.\r\n$ time timeout -sHUP 10m  py3status -c ~/.i3/i3status.conf > /dev/null\r\n\r\nreal\t10m0.006s\r\nuser\t0m4.967s\r\nsys \t0m2.070s\r\n```\r\n\r\nLet me know any thoughts on this","created_at":"2016-03-17T14:42:39Z","updated_at":"2016-03-25T15:44:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e24843fae3ac1887de6f0de6ab68ed3361d9aec","assignee":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ultrabug/py3status/pulls/214/commits","review_comments_url":"https://api.github.com/repos/ultrabug/py3status/pulls/214/comments","review_comment_url":"https://api.github.com/repos/ultrabug/py3status/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ultrabug/py3status/issues/214/comments","statuses_url":"https://api.github.com/repos/ultrabug/py3status/statuses/979c765ea2c443970c7fdc4d37fbe64c037af030","head":{"label":"tobes:speedy","ref":"speedy","sha":"979c765ea2c443970c7fdc4d37fbe64c037af030","user":{"login":"tobes","id":56311,"avatar_url":"https://avatars.githubusercontent.com/u/56311?v=3","gravatar_id":"","url":"https://api.github.com/users/tobes","html_url":"https://github.com/tobes","followers_url":"https://api.github.com/users/tobes/followers","following_url":"https://api.github.com/users/tobes/following{/other_user}","gists_url":"https://api.github.com/users/tobes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobes/subscriptions","organizations_url":"https://api.github.com/users/tobes/orgs","repos_url":"https://api.github.com/users/tobes/repos","events_url":"https://api.github.com/users/tobes/events{/privacy}","received_events_url":"https://api.github.com/users/tobes/received_events","type":"User","site_admin":false},"repo":{"id":53033873,"name":"py3status","full_name":"tobes/py3status","owner":{"login":"tobes","id":56311,"avatar_url":"https://avatars.githubusercontent.com/u/56311?v=3","gravatar_id":"","url":"https://api.github.com/users/tobes","html_url":"https://github.com/tobes","followers_url":"https://api.github.com/users/tobes/followers","following_url":"https://api.github.com/users/tobes/following{/other_user}","gists_url":"https://api.github.com/users/tobes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobes/subscriptions","organizations_url":"https://api.github.com/users/tobes/orgs","repos_url":"https://api.github.com/users/tobes/repos","events_url":"https://api.github.com/users/tobes/events{/privacy}","received_events_url":"https://api.github.com/users/tobes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tobes/py3status","description":"py3status is an extensible i3status wrapper written in python","fork":true,"url":"https://api.github.com/repos/tobes/py3status","forks_url":"https://api.github.com/repos/tobes/py3status/forks","keys_url":"https://api.github.com/repos/tobes/py3status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tobes/py3status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tobes/py3status/teams","hooks_url":"https://api.github.com/repos/tobes/py3status/hooks","issue_events_url":"https://api.github.com/repos/tobes/py3status/issues/events{/number}","events_url":"https://api.github.com/repos/tobes/py3status/events","assignees_url":"https://api.github.com/repos/tobes/py3status/assignees{/user}","branches_url":"https://api.github.com/repos/tobes/py3status/branches{/branch}","tags_url":"https://api.github.com/repos/tobes/py3status/tags","blobs_url":"https://api.github.com/repos/tobes/py3status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tobes/py3status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tobes/py3status/git/refs{/sha}","trees_url":"https://api.github.com/repos/tobes/py3status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tobes/py3status/statuses/{sha}","languages_url":"https://api.github.com/repos/tobes/py3status/languages","stargazers_url":"https://api.github.com/repos/tobes/py3status/stargazers","contributors_url":"https://api.github.com/repos/tobes/py3status/contributors","subscribers_url":"https://api.github.com/repos/tobes/py3status/subscribers","subscription_url":"https://api.github.com/repos/tobes/py3status/subscription","commits_url":"https://api.github.com/repos/tobes/py3status/commits{/sha}","git_commits_url":"https://api.github.com/repos/tobes/py3status/git/commits{/sha}","comments_url":"https://api.github.com/repos/tobes/py3status/comments{/number}","issue_comment_url":"https://api.github.com/repos/tobes/py3status/issues/comments{/number}","contents_url":"https://api.github.com/repos/tobes/py3status/contents/{+path}","compare_url":"https://api.github.com/repos/tobes/py3status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tobes/py3status/merges","archive_url":"https://api.github.com/repos/tobes/py3status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tobes/py3status/downloads","issues_url":"https://api.github.com/repos/tobes/py3status/issues{/number}","pulls_url":"https://api.github.com/repos/tobes/py3status/pulls{/number}","milestones_url":"https://api.github.com/repos/tobes/py3status/milestones{/number}","notifications_url":"https://api.github.com/repos/tobes/py3status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tobes/py3status/labels{/name}","releases_url":"https://api.github.com/repos/tobes/py3status/releases{/id}","deployments_url":"https://api.github.com/repos/tobes/py3status/deployments","created_at":"2016-03-03T08:26:32Z","updated_at":"2016-03-03T08:26:33Z","pushed_at":"2016-03-25T13:39:07Z","git_url":"git://github.com/tobes/py3status.git","ssh_url":"git@github.com:tobes/py3status.git","clone_url":"https://github.com/tobes/py3status.git","svn_url":"https://github.com/tobes/py3status","homepage":"","size":1055,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"ultrabug:master","ref":"master","sha":"fe206ade9fef14dfa450823ba772dd6e05496ade","user":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"repo":{"id":8292338,"name":"py3status","full_name":"ultrabug/py3status","owner":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ultrabug/py3status","description":"py3status is an extensible i3status wrapper written in python","fork":false,"url":"https://api.github.com/repos/ultrabug/py3status","forks_url":"https://api.github.com/repos/ultrabug/py3status/forks","keys_url":"https://api.github.com/repos/ultrabug/py3status/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ultrabug/py3status/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ultrabug/py3status/teams","hooks_url":"https://api.github.com/repos/ultrabug/py3status/hooks","issue_events_url":"https://api.github.com/repos/ultrabug/py3status/issues/events{/number}","events_url":"https://api.github.com/repos/ultrabug/py3status/events","assignees_url":"https://api.github.com/repos/ultrabug/py3status/assignees{/user}","branches_url":"https://api.github.com/repos/ultrabug/py3status/branches{/branch}","tags_url":"https://api.github.com/repos/ultrabug/py3status/tags","blobs_url":"https://api.github.com/repos/ultrabug/py3status/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ultrabug/py3status/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ultrabug/py3status/git/refs{/sha}","trees_url":"https://api.github.com/repos/ultrabug/py3status/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ultrabug/py3status/statuses/{sha}","languages_url":"https://api.github.com/repos/ultrabug/py3status/languages","stargazers_url":"https://api.github.com/repos/ultrabug/py3status/stargazers","contributors_url":"https://api.github.com/repos/ultrabug/py3status/contributors","subscribers_url":"https://api.github.com/repos/ultrabug/py3status/subscribers","subscription_url":"https://api.github.com/repos/ultrabug/py3status/subscription","commits_url":"https://api.github.com/repos/ultrabug/py3status/commits{/sha}","git_commits_url":"https://api.github.com/repos/ultrabug/py3status/git/commits{/sha}","comments_url":"https://api.github.com/repos/ultrabug/py3status/comments{/number}","issue_comment_url":"https://api.github.com/repos/ultrabug/py3status/issues/comments{/number}","contents_url":"https://api.github.com/repos/ultrabug/py3status/contents/{+path}","compare_url":"https://api.github.com/repos/ultrabug/py3status/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ultrabug/py3status/merges","archive_url":"https://api.github.com/repos/ultrabug/py3status/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ultrabug/py3status/downloads","issues_url":"https://api.github.com/repos/ultrabug/py3status/issues{/number}","pulls_url":"https://api.github.com/repos/ultrabug/py3status/pulls{/number}","milestones_url":"https://api.github.com/repos/ultrabug/py3status/milestones{/number}","notifications_url":"https://api.github.com/repos/ultrabug/py3status/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ultrabug/py3status/labels{/name}","releases_url":"https://api.github.com/repos/ultrabug/py3status/releases{/id}","deployments_url":"https://api.github.com/repos/ultrabug/py3status/deployments","created_at":"2013-02-19T14:59:13Z","updated_at":"2016-03-22T21:29:58Z","pushed_at":"2016-03-25T14:29:59Z","git_url":"git://github.com/ultrabug/py3status.git","ssh_url":"git@github.com:ultrabug/py3status.git","clone_url":"https://github.com/ultrabug/py3status.git","svn_url":"https://github.com/ultrabug/py3status","homepage":"","size":1316,"stargazers_count":233,"watchers_count":233,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":25,"forks":96,"open_issues":25,"watchers":233,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/214"},"html":{"href":"https://github.com/ultrabug/py3status/pull/214"},"issue":{"href":"https://api.github.com/repos/ultrabug/py3status/issues/214"},"comments":{"href":"https://api.github.com/repos/ultrabug/py3status/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ultrabug/py3status/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/ultrabug/py3status/statuses/979c765ea2c443970c7fdc4d37fbe64c037af030"}}}}