{"action":"created","issue":{"url":"https://api.github.com/repos/exercism/exercism/issues/4260","repository_url":"https://api.github.com/repos/exercism/exercism","labels_url":"https://api.github.com/repos/exercism/exercism/issues/4260/labels{/name}","comments_url":"https://api.github.com/repos/exercism/exercism/issues/4260/comments","events_url":"https://api.github.com/repos/exercism/exercism/issues/4260/events","html_url":"https://github.com/exercism/exercism/issues/4260","id":351858367,"node_id":"MDU6SXNzdWUzNTE4NTgzNjc=","number":4260,"title":"downloaded solution is different from the one on site.","user":{"login":"ptillemans","id":44337,"node_id":"MDQ6VXNlcjQ0MzM3","avatar_url":"https://avatars3.githubusercontent.com/u/44337?v=4","gravatar_id":"","url":"https://api.github.com/users/ptillemans","html_url":"https://github.com/ptillemans","followers_url":"https://api.github.com/users/ptillemans/followers","following_url":"https://api.github.com/users/ptillemans/following{/other_user}","gists_url":"https://api.github.com/users/ptillemans/gists{/gist_id}","starred_url":"https://api.github.com/users/ptillemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptillemans/subscriptions","organizations_url":"https://api.github.com/users/ptillemans/orgs","repos_url":"https://api.github.com/users/ptillemans/repos","events_url":"https://api.github.com/users/ptillemans/events{/privacy}","received_events_url":"https://api.github.com/users/ptillemans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-18T22:57:28Z","updated_at":"2018-08-18T23:43:45Z","closed_at":null,"author_association":"NONE","body":"On the python track on solution \r\n\r\nhttps://exercism.io/mentor/solutions/d5d94853c3144a00afff43803b093a9c\r\n\r\nWhen I download the solution, there are lines missing which are present on the site.\r\n\r\ndownloaded with *exercism* client\r\n```\r\nclass Allergies(object):\r\n\r\n    def __init__(self, score):\r\n        possible_allergies = ['eggs', 'peanuts', 'shellfish',\r\n                              'strawberries', 'tomatoes', 'chocolate',\r\n                              'pollen', 'cats']\r\n        # 1. Convert the score to a binary format.\r\n        self.score = bin(score)\r\n        # 2. Create a list for our patients allergies\r\n        self.contracted_allergies = []\r\n\r\n        # 3. Loop from the end of our score. 1 = allergy, 0 = no allergy\r\n        for i in range(len(self.score) - 1, 0, -1):\r\n            if self.score[i] == '1' and i > len(self.score) - 9:\r\n                index = len(self.score) - 1 - i\r\n                self.contracted_allergies.append(possible_allergies[index])\r\n\r\n    def is_allergic_to(self, item):\r\n        return item in self.contracted_allergies:\r\n\r\n    @property\r\n    def lst(self):\r\n        return self.contracted_allergies\r\n```\r\n\r\nvisible in the UI :\r\n\r\n```\r\nclass Allergies(object):\r\n    \r\n    def __init__(self, score):\r\n        possible_allergies = ['eggs', 'peanuts', 'shellfish', 'strawberries', 'tomatoes', 'chocolate', 'pollen', 'cats']\r\n        # 1. Convert the score to a binary format and then to a string, so that each digit has an index\r\n        self.score = str(bin(score))\r\n        # 2. Create a list for our patients allergies\r\n        self.contracted_allergies = []\r\n\r\n        # 3. Loop from the end of our score. 1 means that the person suffers from the allergy.\r\n        for i in range(len(self.score) - 1, 0, -1):\r\n            if self.score[i] == '1' and i > len(self.score) - 9:\r\n                index = len(self.score) - 1 - i \r\n                self.contracted_allergies.append(possible_allergies[index])\r\n\r\n    def is_allergic_to(self, item):\r\n        for x in self.contracted_allergies:\r\n            if x == item:\r\n                return True\r\n        return False\r\n\r\n    @property\r\n    def lst(self):\r\n        return self.contracted_allergies\r\n```\r\n\r\nthere is only 1 iteration visible at the moment of logging this ticket.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/exercism/exercism/issues/comments/414092981","html_url":"https://github.com/exercism/exercism/issues/4260#issuecomment-414092981","issue_url":"https://api.github.com/repos/exercism/exercism/issues/4260","id":414092981,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDA5Mjk4MQ==","user":{"login":"ptillemans","id":44337,"node_id":"MDQ6VXNlcjQ0MzM3","avatar_url":"https://avatars3.githubusercontent.com/u/44337?v=4","gravatar_id":"","url":"https://api.github.com/users/ptillemans","html_url":"https://github.com/ptillemans","followers_url":"https://api.github.com/users/ptillemans/followers","following_url":"https://api.github.com/users/ptillemans/following{/other_user}","gists_url":"https://api.github.com/users/ptillemans/gists{/gist_id}","starred_url":"https://api.github.com/users/ptillemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptillemans/subscriptions","organizations_url":"https://api.github.com/users/ptillemans/orgs","repos_url":"https://api.github.com/users/ptillemans/repos","events_url":"https://api.github.com/users/ptillemans/events{/privacy}","received_events_url":"https://api.github.com/users/ptillemans/received_events","type":"User","site_admin":false},"created_at":"2018-08-18T23:43:45Z","updated_at":"2018-08-18T23:43:45Z","author_association":"NONE","body":"on the site only 1 iteration is visible.\r\n"}}
{"actor":{"display_login":"ptillemans"}}