{"action":"created","issue":{"url":"https://api.github.com/repos/fakedrake/WikipediaBase/issues/24","labels_url":"https://api.github.com/repos/fakedrake/WikipediaBase/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/fakedrake/WikipediaBase/issues/24/comments","events_url":"https://api.github.com/repos/fakedrake/WikipediaBase/issues/24/events","html_url":"https://github.com/fakedrake/WikipediaBase/issues/24","id":79985816,"number":24,"title":"Attributes mapping to empty string","user":{"login":"michaelsilver","id":5913522,"avatar_url":"https://avatars.githubusercontent.com/u/5913522?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsilver","html_url":"https://github.com/michaelsilver","followers_url":"https://api.github.com/users/michaelsilver/followers","following_url":"https://api.github.com/users/michaelsilver/following{/other_user}","gists_url":"https://api.github.com/users/michaelsilver/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsilver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsilver/subscriptions","organizations_url":"https://api.github.com/users/michaelsilver/orgs","repos_url":"https://api.github.com/users/michaelsilver/repos","events_url":"https://api.github.com/users/michaelsilver/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsilver/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fakedrake/WikipediaBase/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"fakedrake","id":408231,"avatar_url":"https://avatars.githubusercontent.com/u/408231?v=3","gravatar_id":"","url":"https://api.github.com/users/fakedrake","html_url":"https://github.com/fakedrake","followers_url":"https://api.github.com/users/fakedrake/followers","following_url":"https://api.github.com/users/fakedrake/following{/other_user}","gists_url":"https://api.github.com/users/fakedrake/gists{/gist_id}","starred_url":"https://api.github.com/users/fakedrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fakedrake/subscriptions","organizations_url":"https://api.github.com/users/fakedrake/orgs","repos_url":"https://api.github.com/users/fakedrake/repos","events_url":"https://api.github.com/users/fakedrake/events{/privacy}","received_events_url":"https://api.github.com/users/fakedrake/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-23T23:35:42Z","updated_at":"2015-07-02T20:10:46Z","closed_at":null,"body":"Some attributes map to an empty string (`u''`) when fetched using:\r\n```\r\nget_meta_infobox('<TEMPLATE_NAME>').rendered_keys()\r\n```\r\nAny idea why this is happening?\r\n\r\nBelow is a list of tuples in the form `(attribute, [list of infoboxes for which this happens])` for all fetchable attributes that map to the empty string:\r\n```\r\n(u'DST_note', [u'Template:Infobox country'])\r\n(u'nebty_hiero', [u'Template:Infobox pharaoh'])\r\n(u'junction', [u'Template:Infobox road'])\r\n(u'female_weight', [u'Template:Infobox animal breed'])\r\n(u'mottotranslated', [u'Template:Infobox law enforcement agency'])\r\n(u'life_span', [u'Template:Infobox former subdivision'])\r\n(u'coach_year', [u'Template:Infobox college inline hockey team', u'Template:Infobox college ice hockey team'])\r\n(u'year_end', [u'Template:Infobox former country'])\r\n(u'motto_translated', [u'Template:Infobox law enforcement agency'])\r\n(u'female_height', [u'Template:Infobox animal breed'])\r\n(u'birth_place', [u'Template:Infobox family'])\r\n(u'femaleheight', [u'Template:Infobox goat breed', u'Template:Infobox donkey', u'Template:Infobox pig breed', u'Template:Infobox water buffalo breed', u'Template:Infobox cattle breed', u'Template:Infobox sheep breed'])\r\n(u'coach_ties', [u'Template:Infobox college inline hockey team', u'Template:Infobox college ice hockey team'])\r\n(u'golden_hiero', [u'Template:Infobox pharaoh'])\r\n(u'coach_losses', [u'Template:Infobox college inline hockey team', u'Template:Infobox college ice hockey team'])\r\n(u'year_start', [u'Template:Infobox former country'])\r\n(u'area_note', [u'Template:Infobox settlement'])\r\n(u'population_note', [u'Template:Infobox settlement'])\r\n(u'femaleweight', [u'Template:Infobox goat breed', u'Template:Infobox poultry breed', u'Template:Infobox donkey', u'Template:Infobox pig breed', u'Template:Infobox water buffalo breed', u'Template:Infobox cattle breed', u'Template:Infobox sheep breed'])\r\n(u'coach_wins', [u'Template:Infobox college inline hockey team', u'Template:Infobox college ice hockey team'])\r\n```"},"comment":{"url":"https://api.github.com/repos/fakedrake/WikipediaBase/issues/comments/118152643","html_url":"https://github.com/fakedrake/WikipediaBase/issues/24#issuecomment-118152643","issue_url":"https://api.github.com/repos/fakedrake/WikipediaBase/issues/24","id":118152643,"user":{"login":"michaelsilver","id":5913522,"avatar_url":"https://avatars.githubusercontent.com/u/5913522?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsilver","html_url":"https://github.com/michaelsilver","followers_url":"https://api.github.com/users/michaelsilver/followers","following_url":"https://api.github.com/users/michaelsilver/following{/other_user}","gists_url":"https://api.github.com/users/michaelsilver/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsilver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsilver/subscriptions","organizations_url":"https://api.github.com/users/michaelsilver/orgs","repos_url":"https://api.github.com/users/michaelsilver/repos","events_url":"https://api.github.com/users/michaelsilver/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsilver/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T20:10:46Z","updated_at":"2015-07-02T20:10:46Z","body":"Sorry -- I must I have missed your response somehow. You note an interesting case, but I am not sure that this is the source of the problem since the following is returned for France's infobox:\r\n```Python\r\n>>> from wikipediabase.util import get_infobox, get_meta_infobox\r\n>>> get_meta_infobox('Template:Infobox country').rendered_keys()\r\n{'calling_code': 'Calling code',\r\n'largest_city': u'Largest\\xc2\\xa0!!!!!largest_settlement_type!!!!!',\r\nu'GDP_nominal_year': u'GDP\\xc2\\xa0(nominal)',\r\n'demonym': 'Demonym',\r\n'government_type': 'Government',\r\nu'symbol_type': 'Flag',\r\n'longm': '!!!!!admin_center_type!!!!!',\r\n'cctld': 'Internet TLD',\r\nu'common_name': u'Flag of\\xc2\\xa0!!!!!common_name!!!!!',\r\nu'HDI': 'HDI (!!!!!HDI_year!!!!!)',\r\n'longd': '!!!!!admin_center_type!!!!!',\r\n'longEW': '!!!!!admin_center_type!!!!!',\r\nu'HDI_ref': 'HDI (!!!!!HDI_year!!!!!)',\r\nu'Gini': u'Gini\\xc2\\xa0(!!!!!Gini_year!!!!!)',\r\n'official_languages': 'Official languages',\r\n'ethnic_groups': u'Ethnic\\xc2\\xa0groups (!!!!!ethnic_groups_year!!!!!)',\r\nu'Gini_ref': u'Gini\\xc2\\xa0(!!!!!Gini_year!!!!!)',\r\n'languages': '!!!!!languages_type!!!!!',\r\n'latd': '!!!!!admin_center_type!!!!!',\r\n'DST_note': '',\r\nu'population_census_year': u'\\xc2\\xa0-\\xc2',\r\n'footnote_a': 'a.',\r\n'capital': '!!!!!admin_center_type!!!!!',\r\n'latm': '!!!!!admin_center_type!!!!!',\r\n'national_languages': u'Recognised national\\xc2\\xa0languages',\r\n'footnote_b': 'b.',\r\n'status': 'Status',\r\nu'Gini_rank': u'Gini\\xc2\\xa0(!!!!!Gini_year!!!!!)',\r\n'utc_offset': 'Time zone',\r\n'nummembers': 'Membership',\r\n'latNS': '!!!!!admin_center_type!!!!!',\r\n'regional_languages': u'Recognised regional\\xc2\\xa0languages',\r\n'membership': '!!!!!membership_type!!!!!',\r\n'drives_on': 'Drives on the',\r\nu'GDP_PPP_year': u'GDP\\xc2\\xa0(PPP)',\r\n'antipodes': 'Antipodes',\r\n'patron_saint': 'Patron saint',\r\n'legislature': 'Legislature',\r\n'date_format': 'Date format',\r\n'currency': 'Currency',\r\nu'population_estimate_year': u'\\xc2\\xa0-\\xc2',\r\n'loctext': 'Location',\r\n'org_type': 'Type',\r\n'time_zone': 'Time zone',\r\n'religion': 'Religion',\r\nu'HDI_rank': 'HDI (!!!!!HDI_year!!!!!)',\r\n'footnote_h': 'h.',\r\n'currency_code': 'Currency'}\r\n```\r\nNote that `englishmotto` is not there and rather `DST_note` is the only attribute with no rendered value. Any ideas why?\r\n\r\nIf an attribute really trully maps to nothing, then my inclination is to simply exlude it from the list. Any reason to keep it there? I think it would be just a pain for anyone using WikipediaBase to have to know to check for `None` or whatever we put in place of `''`. What do you think?"}}