{"issue":{"milestone":null,"title":"cannot delete tasks or notebooks","created_at":"2011-12-17T11:40:04Z","user":{"id":1180356,"login":"fgtham","url":"https://api.github.com/users/fgtham","avatar_url":"https://secure.gravatar.com/avatar/1028291398506736481690789e6b62f8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1028291398506736481690789e6b62f8"},"labels":[],"updated_at":"2012-01-01T00:11:24Z","state":"closed","id":2588529,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/handyman5/poodledo/issues/3","closed_at":"2012-01-01T00:11:24Z","body":"When trying to delete tasks or notebooks, `apiclient.py` fails to assemble the correct API calls. This patch fixes the issue for me:\r\n\r\n    diff --git a/apiclient.py b/apiclient.py\r\n    index 6df234f..4ecc2bd 100755\r\n    --- a/apiclient.py\r\n    +++ b/apiclient.py\r\n    @@ -595,7 +595,7 @@ class ApiClient(object):\r\n             '''\r\n             id_ = self.getNotebook(label).id\r\n             self._notebooks_cache = None\r\n    -        return self._call(key=key, kind='notebooks', action='delete', id_=id_).text\r\n    +        return self._call(key=key, kind='notebooks', action='delete', notebooks=[id_]).text\r\n     \r\n         @check_api_key\r\n         def editNotebook(self, label, key=None, **kwargs):\r\n    @@ -674,7 +674,7 @@ class ApiClient(object):\r\n             '''\r\n             id_ = self.getTask(label).id\r\n             self._tasks_cache = None\r\n    -        return self._call(key=key, kind='tasks', action='delete', id_=id_).text\r\n    +        return self._call(key=key, kind='tasks', action='delete', tasks=[id_]).text\r\n     \r\n         @check_api_key\r\n         def editTask(self, label, key=None, **kwargs):\r\n    ","number":3,"url":"https://api.github.com/repos/handyman5/poodledo/issues/3","comments":1,"assignee":null},"comment":{"created_at":"2012-01-01T00:11:24Z","user":{"id":192126,"login":"handyman5","url":"https://api.github.com/users/handyman5","avatar_url":"https://secure.gravatar.com/avatar/965def43faefdac5385468e23f303f5f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"965def43faefdac5385468e23f303f5f"},"updated_at":"2012-01-01T00:11:24Z","id":3323370,"body":"This is fixed with a545125c6f878a15585282b1ee51f1506d7e8ee9. Thanks so much for the bug report and the patch!","url":"https://api.github.com/repos/handyman5/poodledo/issues/comments/3323370"},"action":"created"}