{"action":"created","issue":{"url":"https://api.github.com/repos/Ecotrust/TEKDB/issues/95","repository_url":"https://api.github.com/repos/Ecotrust/TEKDB","labels_url":"https://api.github.com/repos/Ecotrust/TEKDB/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/Ecotrust/TEKDB/issues/95/comments","events_url":"https://api.github.com/repos/Ecotrust/TEKDB/issues/95/events","html_url":"https://github.com/Ecotrust/TEKDB/issues/95","id":269769443,"number":95,"title":"Broken Import: handle strings with double quotes and strings with single-quote/comma","user":{"login":"rhodges","id":526505,"avatar_url":"https://avatars1.githubusercontent.com/u/526505?v=4","gravatar_id":"","url":"https://api.github.com/users/rhodges","html_url":"https://github.com/rhodges","followers_url":"https://api.github.com/users/rhodges/followers","following_url":"https://api.github.com/users/rhodges/following{/other_user}","gists_url":"https://api.github.com/users/rhodges/gists{/gist_id}","starred_url":"https://api.github.com/users/rhodges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhodges/subscriptions","organizations_url":"https://api.github.com/users/rhodges/orgs","repos_url":"https://api.github.com/users/rhodges/repos","events_url":"https://api.github.com/users/rhodges/events{/privacy}","received_events_url":"https://api.github.com/users/rhodges/received_events","type":"User","site_admin":false},"labels":[{"id":538858797,"url":"https://api.github.com/repos/Ecotrust/TEKDB/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"rhodges","id":526505,"avatar_url":"https://avatars1.githubusercontent.com/u/526505?v=4","gravatar_id":"","url":"https://api.github.com/users/rhodges","html_url":"https://github.com/rhodges","followers_url":"https://api.github.com/users/rhodges/followers","following_url":"https://api.github.com/users/rhodges/following{/other_user}","gists_url":"https://api.github.com/users/rhodges/gists{/gist_id}","starred_url":"https://api.github.com/users/rhodges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhodges/subscriptions","organizations_url":"https://api.github.com/users/rhodges/orgs","repos_url":"https://api.github.com/users/rhodges/repos","events_url":"https://api.github.com/users/rhodges/events{/privacy}","received_events_url":"https://api.github.com/users/rhodges/received_events","type":"User","site_admin":false},"assignees":[{"login":"rhodges","id":526505,"avatar_url":"https://avatars1.githubusercontent.com/u/526505?v=4","gravatar_id":"","url":"https://api.github.com/users/rhodges","html_url":"https://github.com/rhodges","followers_url":"https://api.github.com/users/rhodges/followers","following_url":"https://api.github.com/users/rhodges/following{/other_user}","gists_url":"https://api.github.com/users/rhodges/gists{/gist_id}","starred_url":"https://api.github.com/users/rhodges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhodges/subscriptions","organizations_url":"https://api.github.com/users/rhodges/orgs","repos_url":"https://api.github.com/users/rhodges/repos","events_url":"https://api.github.com/users/rhodges/events{/privacy}","received_events_url":"https://api.github.com/users/rhodges/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Ecotrust/TEKDB/milestones/5","html_url":"https://github.com/Ecotrust/TEKDB/milestone/5","labels_url":"https://api.github.com/repos/Ecotrust/TEKDB/milestones/5/labels","id":2320377,"number":5,"title":"Final","description":"Styles are in place.\r\nTool is installed and running on-site.\r\nFile exports work.\r\nSpatial and other media tie-ins are complete.\r\nRunning live at HQ.\r\nDocumentation is polished and published, available for other tribes.","creator":{"login":"rhodges","id":526505,"avatar_url":"https://avatars1.githubusercontent.com/u/526505?v=4","gravatar_id":"","url":"https://api.github.com/users/rhodges","html_url":"https://github.com/rhodges","followers_url":"https://api.github.com/users/rhodges/followers","following_url":"https://api.github.com/users/rhodges/following{/other_user}","gists_url":"https://api.github.com/users/rhodges/gists{/gist_id}","starred_url":"https://api.github.com/users/rhodges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhodges/subscriptions","organizations_url":"https://api.github.com/users/rhodges/orgs","repos_url":"https://api.github.com/users/rhodges/repos","events_url":"https://api.github.com/users/rhodges/events{/privacy}","received_events_url":"https://api.github.com/users/rhodges/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":26,"state":"open","created_at":"2017-02-13T23:23:48Z","updated_at":"2017-10-31T03:45:07Z","due_on":"2017-09-29T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-10-30T22:02:49Z","updated_at":"2017-10-31T03:45:07Z","closed_at":"2017-10-31T03:45:07Z","author_association":"OWNER","body":"single quotes are escaped with another single quote: \"he'll\" becomes \"he''ll\"\r\n\r\nIf that single quote (or apostrophe) is right before a comma, that breaks the current regex pattern:\r\neg_match = r'(E\\'\".+?(?!\\\\)\"\\'|E\\'.*?(?!\\\\)\\'|.+?)(?:,\\s|$)'\r\nimport_sql near line 180\r\n\r\nIt also fails on strings with double quotes, which switch from:\r\nE'I\\'m a string!'\r\nto\r\nE\\'I\\'m a \"string\"!\\'\r\nso that it can be single quoted\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Ecotrust/TEKDB/issues/comments/340651539","html_url":"https://github.com/Ecotrust/TEKDB/issues/95#issuecomment-340651539","issue_url":"https://api.github.com/repos/Ecotrust/TEKDB/issues/95","id":340651539,"user":{"login":"rhodges","id":526505,"avatar_url":"https://avatars1.githubusercontent.com/u/526505?v=4","gravatar_id":"","url":"https://api.github.com/users/rhodges","html_url":"https://github.com/rhodges","followers_url":"https://api.github.com/users/rhodges/followers","following_url":"https://api.github.com/users/rhodges/following{/other_user}","gists_url":"https://api.github.com/users/rhodges/gists{/gist_id}","starred_url":"https://api.github.com/users/rhodges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhodges/subscriptions","organizations_url":"https://api.github.com/users/rhodges/orgs","repos_url":"https://api.github.com/users/rhodges/repos","events_url":"https://api.github.com/users/rhodges/events{/privacy}","received_events_url":"https://api.github.com/users/rhodges/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T03:45:06Z","updated_at":"2017-10-31T03:45:06Z","author_association":"OWNER","body":"gave all __str__() functions \"or ''\" so 'NoneType' was never returned. Trying to str that was breaking everything."}}
{"actor":{"display_login":"rhodges"}}