"1000": "Civil Liberty",
"1001": "Incursion",
"1002": "Pirate Attack",
+ "1003": "Infrastructure Failure",
+ "1004": "Public Holiday",
+ "1005": "Terrorism",
+ "1006": "Drought",
+ "1007": "Natural Disaster",
+ "1008": "Blight",
+ "1009": "Infested",
}
def state_name(id):
for state_id, state_name in eddb_states.items():
if state_name.lower().replace(' ', '') == stripped:
return int(state_id)
+ logging.warning("Don't have an ID for state: {}".format(name))
return None
def eddb_query(root, params, expand = None):