{"action":"created","issue":{"url":"https://api.github.com/repos/skygragon/leetcode-cli/issues/5","repository_url":"https://api.github.com/repos/skygragon/leetcode-cli","labels_url":"https://api.github.com/repos/skygragon/leetcode-cli/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/skygragon/leetcode-cli/issues/5/comments","events_url":"https://api.github.com/repos/skygragon/leetcode-cli/issues/5/events","html_url":"https://github.com/skygragon/leetcode-cli/pull/5","id":175661092,"number":5,"title":"fix user status done undefined","user":{"login":"csvwolf","id":8280645,"avatar_url":"https://avatars.githubusercontent.com/u/8280645?v=3","gravatar_id":"","url":"https://api.github.com/users/csvwolf","html_url":"https://github.com/csvwolf","followers_url":"https://api.github.com/users/csvwolf/followers","following_url":"https://api.github.com/users/csvwolf/following{/other_user}","gists_url":"https://api.github.com/users/csvwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/csvwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csvwolf/subscriptions","organizations_url":"https://api.github.com/users/csvwolf/orgs","repos_url":"https://api.github.com/users/csvwolf/repos","events_url":"https://api.github.com/users/csvwolf/events{/privacy}","received_events_url":"https://api.github.com/users/csvwolf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-08T04:12:19Z","updated_at":"2016-09-08T05:24:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/skygragon/leetcode-cli/pulls/5","html_url":"https://github.com/skygragon/leetcode-cli/pull/5","diff_url":"https://github.com/skygragon/leetcode-cli/pull/5.diff","patch_url":"https://github.com/skygragon/leetcode-cli/pull/5.patch"},"body":"My Leetcode Status is : \r\n\r\nEasy      39/97  (40.21%)       [..............................]\r\nMedium     4/198 (2.02%)        [..............................]\r\nHard       0/83  (0.00%)        [..............................]\r\n\r\nBut when I run, it will throw an error since I have not done hard problems yet:\r\n\r\n```\r\n                    throw new TypeError(sprintf(\"[sprintf] expecting number but found %s\", get_type(arg)))\r\n                    ^\r\n\r\nTypeError: [sprintf] expecting number but found undefined\r\n```\r\n\r\nSo I use a default value to fix it. Hope it's useful for the project."},"comment":{"url":"https://api.github.com/repos/skygragon/leetcode-cli/issues/comments/245496951","html_url":"https://github.com/skygragon/leetcode-cli/pull/5#issuecomment-245496951","issue_url":"https://api.github.com/repos/skygragon/leetcode-cli/issues/5","id":245496951,"user":{"login":"skygragon","id":1295096,"avatar_url":"https://avatars.githubusercontent.com/u/1295096?v=3","gravatar_id":"","url":"https://api.github.com/users/skygragon","html_url":"https://github.com/skygragon","followers_url":"https://api.github.com/users/skygragon/followers","following_url":"https://api.github.com/users/skygragon/following{/other_user}","gists_url":"https://api.github.com/users/skygragon/gists{/gist_id}","starred_url":"https://api.github.com/users/skygragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skygragon/subscriptions","organizations_url":"https://api.github.com/users/skygragon/orgs","repos_url":"https://api.github.com/users/skygragon/repos","events_url":"https://api.github.com/users/skygragon/events{/privacy}","received_events_url":"https://api.github.com/users/skygragon/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T05:24:02Z","updated_at":"2016-09-08T05:24:02Z","body":"Thanks for patching!\r\n\r\nThe default value is clean and easy while it's a new feature from es6/es2015, which means older nodejs distributions don't support it by default. For example, in nodejs v5.6.0, we must use \"--harmony_default_parameters\" in calling to make it working.\r\n\r\nIMHO It would be better to use a common way to fit different nodejs versions, e.g. \r\n```\r\nprettyLine('Easy', stats.acEasy || 0, stats.allEasy);\r\n```"}}
{"actor":{"display_login":"skygragon"}}