{"action":"reopened","issue":{"url":"https://api.github.com/repos/RaddKatt/Python-Scripts/issues/25","repository_url":"https://api.github.com/repos/RaddKatt/Python-Scripts","labels_url":"https://api.github.com/repos/RaddKatt/Python-Scripts/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/RaddKatt/Python-Scripts/issues/25/comments","events_url":"https://api.github.com/repos/RaddKatt/Python-Scripts/issues/25/events","html_url":"https://github.com/RaddKatt/Python-Scripts/issues/25","id":183195353,"number":25,"title":"Add ampersands to parseValues in getTcodes2.py","user":{"login":"RaddKatt","id":12103924,"avatar_url":"https://avatars.githubusercontent.com/u/12103924?v=3","gravatar_id":"","url":"https://api.github.com/users/RaddKatt","html_url":"https://github.com/RaddKatt","followers_url":"https://api.github.com/users/RaddKatt/followers","following_url":"https://api.github.com/users/RaddKatt/following{/other_user}","gists_url":"https://api.github.com/users/RaddKatt/gists{/gist_id}","starred_url":"https://api.github.com/users/RaddKatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaddKatt/subscriptions","organizations_url":"https://api.github.com/users/RaddKatt/orgs","repos_url":"https://api.github.com/users/RaddKatt/repos","events_url":"https://api.github.com/users/RaddKatt/events{/privacy}","received_events_url":"https://api.github.com/users/RaddKatt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RaddKatt/Python-Scripts/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"RaddKatt","id":12103924,"avatar_url":"https://avatars.githubusercontent.com/u/12103924?v=3","gravatar_id":"","url":"https://api.github.com/users/RaddKatt","html_url":"https://github.com/RaddKatt","followers_url":"https://api.github.com/users/RaddKatt/followers","following_url":"https://api.github.com/users/RaddKatt/following{/other_user}","gists_url":"https://api.github.com/users/RaddKatt/gists{/gist_id}","starred_url":"https://api.github.com/users/RaddKatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaddKatt/subscriptions","organizations_url":"https://api.github.com/users/RaddKatt/orgs","repos_url":"https://api.github.com/users/RaddKatt/repos","events_url":"https://api.github.com/users/RaddKatt/events{/privacy}","received_events_url":"https://api.github.com/users/RaddKatt/received_events","type":"User","site_admin":false},"assignees":[{"login":"RaddKatt","id":12103924,"avatar_url":"https://avatars.githubusercontent.com/u/12103924?v=3","gravatar_id":"","url":"https://api.github.com/users/RaddKatt","html_url":"https://github.com/RaddKatt","followers_url":"https://api.github.com/users/RaddKatt/followers","following_url":"https://api.github.com/users/RaddKatt/following{/other_user}","gists_url":"https://api.github.com/users/RaddKatt/gists{/gist_id}","starred_url":"https://api.github.com/users/RaddKatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaddKatt/subscriptions","organizations_url":"https://api.github.com/users/RaddKatt/orgs","repos_url":"https://api.github.com/users/RaddKatt/repos","events_url":"https://api.github.com/users/RaddKatt/events{/privacy}","received_events_url":"https://api.github.com/users/RaddKatt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-10-15T07:41:33Z","updated_at":"2016-10-17T21:05:03Z","closed_at":null,"body":"Add ampersands to the parseValues function in getTcodes2.py, and modify previous last parser ```'&#39;'``` to replace with ```'`'``` instead of ```\"'\"```:\r\n\r\nWas:\r\n```python\r\ndef parseValues(searchString):\r\n    parsed = re.findall(searchString, text)\r\n    parsed = str(parsed[0])\r\n    parsed = re.findall('<small>\\s+(.*)</small>', parsed)\r\n    parsed = str(parsed[0])\r\n    parsed = re.sub('\\s*$', '', parsed.rstrip())\r\n    parsed = re.sub(',', ';', parsed.rstrip())\r\n    parsed = re.sub('\"', '`', parsed.rstrip())\r\n    parsed = re.sub(\"'\", '`', parsed.rstrip())\r\n    parsed = re.sub('&gt;', '>', parsed.rstrip())\r\n    parsed = re.sub('&lt;', '<', parsed.rstrip())\r\n    parsed = re.sub('&#39;', \"'\", parsed.rstrip())\r\n    return parsed\r\n```\r\n\r\nWill be:\r\n```python\r\ndef parseValues(searchString):\r\n    parsed = re.findall(searchString, text)\r\n    parsed = str(parsed[0])\r\n    parsed = re.findall('<small>\\s+(.*)</small>', parsed)\r\n    parsed = str(parsed[0])\r\n    parsed = re.sub('\\s*$', '', parsed.rstrip())\r\n    parsed = re.sub(',', ';', parsed.rstrip())\r\n    parsed = re.sub('\"', '`', parsed.rstrip())\r\n    parsed = re.sub(\"'\", '`', parsed.rstrip())\r\n    parsed = re.sub('&quot;', '`', parsed.rstrip())\r\n    parsed = re.sub('&gt;', '>', parsed.rstrip())\r\n    parsed = re.sub('&lt;', '<', parsed.rstrip())\r\n    parsed = re.sub('&#39;', '`', parsed.rstrip())\r\n    parsed = re.sub('&amp;', '&', parsed.rstrip())\r\n    return parsed\r\n```"}}
{"actor":{"display_login":"RaddKatt"}}