{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/qiita/issues/1304","repository_url":"https://api.github.com/repos/biocore/qiita","labels_url":"https://api.github.com/repos/biocore/qiita/issues/1304/labels{/name}","comments_url":"https://api.github.com/repos/biocore/qiita/issues/1304/comments","events_url":"https://api.github.com/repos/biocore/qiita/issues/1304/events","html_url":"https://github.com/biocore/qiita/issues/1304","id":91554801,"number":1304,"title":"Send lists to postgres properly","user":{"login":"squirrelo","id":3079066,"avatar_url":"https://avatars.githubusercontent.com/u/3079066?v=3","gravatar_id":"","url":"https://api.github.com/users/squirrelo","html_url":"https://github.com/squirrelo","followers_url":"https://api.github.com/users/squirrelo/followers","following_url":"https://api.github.com/users/squirrelo/following{/other_user}","gists_url":"https://api.github.com/users/squirrelo/gists{/gist_id}","starred_url":"https://api.github.com/users/squirrelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squirrelo/subscriptions","organizations_url":"https://api.github.com/users/squirrelo/orgs","repos_url":"https://api.github.com/users/squirrelo/repos","events_url":"https://api.github.com/users/squirrelo/events{/privacy}","received_events_url":"https://api.github.com/users/squirrelo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/biocore/qiita/milestones/10","html_url":"https://github.com/biocore/qiita/milestones/Alpha%200.3","labels_url":"https://api.github.com/repos/biocore/qiita/milestones/10/labels","id":1093698,"number":10,"title":"Alpha 0.3","description":"","creator":{"login":"josenavas","id":2501478,"avatar_url":"https://avatars.githubusercontent.com/u/2501478?v=3","gravatar_id":"","url":"https://api.github.com/users/josenavas","html_url":"https://github.com/josenavas","followers_url":"https://api.github.com/users/josenavas/followers","following_url":"https://api.github.com/users/josenavas/following{/other_user}","gists_url":"https://api.github.com/users/josenavas/gists{/gist_id}","starred_url":"https://api.github.com/users/josenavas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josenavas/subscriptions","organizations_url":"https://api.github.com/users/josenavas/orgs","repos_url":"https://api.github.com/users/josenavas/repos","events_url":"https://api.github.com/users/josenavas/events{/privacy}","received_events_url":"https://api.github.com/users/josenavas/received_events","type":"User","site_admin":false},"open_issues":209,"closed_issues":72,"state":"open","created_at":"2015-05-02T23:05:42Z","updated_at":"2016-04-29T14:57:22Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-28T05:25:58Z","updated_at":"2016-05-02T18:10:27Z","closed_at":null,"body":"Psycopg2 has a nice feature: it will pass lists as an SQL ARRAY object, but it will pass tuples as a simple list.\r\n\r\nFor example:\r\n\tsome_list = [1, 2, 3]\r\n\tsql = “DELETE FROM foo WHERE bar IN %s”\r\n\tconn_handler.execute(sql, [tuple(some_list)])\r\n\r\nThe resulting SQL is:\r\n\t“DELETE FROM foo WHERE bar IN (1,2,3)”\r\n\r\nThis is super handy, as we’ve been doing unsafe list comprehensions to get around the list -> ARRAY issue (see [here](https://github.com/biocore/qiita/blob/master/qiita_db/data.py#L1424) as an example). We should replace all these with proper tuple use."},"comment":{"url":"https://api.github.com/repos/biocore/qiita/issues/comments/216314506","html_url":"https://github.com/biocore/qiita/issues/1304#issuecomment-216314506","issue_url":"https://api.github.com/repos/biocore/qiita/issues/1304","id":216314506,"user":{"login":"antgonza","id":2014559,"avatar_url":"https://avatars.githubusercontent.com/u/2014559?v=3","gravatar_id":"","url":"https://api.github.com/users/antgonza","html_url":"https://github.com/antgonza","followers_url":"https://api.github.com/users/antgonza/followers","following_url":"https://api.github.com/users/antgonza/following{/other_user}","gists_url":"https://api.github.com/users/antgonza/gists{/gist_id}","starred_url":"https://api.github.com/users/antgonza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antgonza/subscriptions","organizations_url":"https://api.github.com/users/antgonza/orgs","repos_url":"https://api.github.com/users/antgonza/repos","events_url":"https://api.github.com/users/antgonza/events{/privacy}","received_events_url":"https://api.github.com/users/antgonza/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T18:10:27Z","updated_at":"2016-05-02T18:10:27Z","body":"@squirrelo the link doesn't exist anymore, could you update it or copy the new code here? Thanks. "}}