{"action":"created","issue":{"url":"https://api.github.com/repos/ctmil/meli_oerp/issues/9","repository_url":"https://api.github.com/repos/ctmil/meli_oerp","labels_url":"https://api.github.com/repos/ctmil/meli_oerp/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ctmil/meli_oerp/issues/9/comments","events_url":"https://api.github.com/repos/ctmil/meli_oerp/issues/9/events","html_url":"https://github.com/ctmil/meli_oerp/issues/9","id":182770662,"number":9,"title":"No descarga todos los orders","user":{"login":"laescudero","id":22673227,"avatar_url":"https://avatars.githubusercontent.com/u/22673227?v=3","gravatar_id":"","url":"https://api.github.com/users/laescudero","html_url":"https://github.com/laescudero","followers_url":"https://api.github.com/users/laescudero/followers","following_url":"https://api.github.com/users/laescudero/following{/other_user}","gists_url":"https://api.github.com/users/laescudero/gists{/gist_id}","starred_url":"https://api.github.com/users/laescudero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laescudero/subscriptions","organizations_url":"https://api.github.com/users/laescudero/orgs","repos_url":"https://api.github.com/users/laescudero/repos","events_url":"https://api.github.com/users/laescudero/events{/privacy}","received_events_url":"https://api.github.com/users/laescudero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T12:02:07Z","updated_at":"2016-10-13T12:02:37Z","closed_at":null,"body":"Hola a todos, pido disculpas pues es mi primera incursión en GitHub.\r\n\r\nInstalé el módulo y ví que sólo descargó los primeros 50 \"orders\" que coincidía justamente con la cantidad en la que hace paginación la API de MELI.\r\n\r\nLo corregí en mi instalación cambiando:\r\n`       if \"paging\" in orders_json:\r\n            if \"total\" in orders_json[\"paging\"]:\r\n                if (orders_json[\"paging\"][\"total\"]==0):\r\n                    return {}\r\n                else:\r\n                    if (orders_json[\"paging\"][\"total\"]==orders_json[\"paging\"][\"limit\"]):\r\n                        offset_next = offset + orders_json[\"paging\"][\"limit\"]`\r\npor esto:\r\n`       if \"paging\" in orders_json:\r\n            if \"total\" in orders_json[\"paging\"]:\r\n                if (orders_json[\"paging\"][\"total\"]==0):\r\n                    return {}\r\n                else:\r\n                    if (orders_json[\"paging\"][\"total\"] > orders_json[\"paging\"][\"limit\"]):\r\n                        offset_next = offset + orders_json[\"paging\"][\"limit\"]`"},"comment":{"url":"https://api.github.com/repos/ctmil/meli_oerp/issues/comments/253493868","html_url":"https://github.com/ctmil/meli_oerp/issues/9#issuecomment-253493868","issue_url":"https://api.github.com/repos/ctmil/meli_oerp/issues/9","id":253493868,"user":{"login":"laescudero","id":22673227,"avatar_url":"https://avatars.githubusercontent.com/u/22673227?v=3","gravatar_id":"","url":"https://api.github.com/users/laescudero","html_url":"https://github.com/laescudero","followers_url":"https://api.github.com/users/laescudero/followers","following_url":"https://api.github.com/users/laescudero/following{/other_user}","gists_url":"https://api.github.com/users/laescudero/gists{/gist_id}","starred_url":"https://api.github.com/users/laescudero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laescudero/subscriptions","organizations_url":"https://api.github.com/users/laescudero/orgs","repos_url":"https://api.github.com/users/laescudero/repos","events_url":"https://api.github.com/users/laescudero/events{/privacy}","received_events_url":"https://api.github.com/users/laescudero/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T12:02:37Z","updated_at":"2016-10-13T12:02:37Z","body":"Esto es en orders.py"}}
{"actor":{"display_login":"laescudero"}}