{"action":"created","issue":{"url":"https://api.github.com/repos/learningequality/ka-lite/issues/3311","labels_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3311/labels{/name}","comments_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3311/comments","events_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3311/events","html_url":"https://github.com/learningequality/ka-lite/issues/3311","id":62223498,"number":3311,"title":"get_installed_language_packs gives very different output from one call to the next","user":{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/learningequality/ka-lite/labels/release%20blocker","name":"release blocker","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/learningequality/ka-lite/milestones/37","html_url":"https://github.com/learningequality/ka-lite/milestones/0.13.x","labels_url":"https://api.github.com/repos/learningequality/ka-lite/milestones/37/labels","id":656433,"number":37,"title":"0.13.x","description":"- bootstrap for everything!\r\n- i18n beta languages\r\n- lots of fixes","creator":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":368,"state":"open","created_at":"2014-05-12T16:58:11Z","updated_at":"2015-03-17T21:02:50Z","due_on":"2015-02-17T08:00:00Z","closed_at":null},"comments":1,"created_at":"2015-03-16T22:17:58Z","updated_at":"2015-03-17T21:11:13Z","closed_at":null,"body":"Branch: develop\r\n\r\nExpected behaviour: Unless a new language pack has been installed, the output of get_installed_language_packs should be identical from call to call\r\n\r\nCurrent behaviour: Repeated calls to the function result in seemingly radically different outputs.\r\n\r\nSteps to reproduce:\r\nInject a logging.debug statement inside 'get_best_available_language' and log the output of the call to get_installed_language_packs."},"comment":{"url":"https://api.github.com/repos/learningequality/ka-lite/issues/comments/82602459","html_url":"https://github.com/learningequality/ka-lite/issues/3311#issuecomment-82602459","issue_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3311","id":82602459,"user":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T21:11:13Z","updated_at":"2015-03-17T21:11:13Z","body":"Strange, I consistently get english here (despite having more languages installed):\r\n\r\n```\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\nDEBUG:kalite:['en']\r\nDEBUG:kalite:Requested code eo, got code en\r\n```"}}