Added more faction state names.
authorCMDR furrycat <elite@furrycat.net>
Mon, 16 Nov 2020 16:37:33 +0000 (17:37 +0100)
committerCMDR furrycat <elite@furrycat.net>
Mon, 16 Nov 2020 16:37:33 +0000 (17:37 +0100)
eddb.py

diff --git a/eddb.py b/eddb.py
index 28e3f34..4a06252 100644 (file)
--- a/eddb.py
+++ b/eddb.py
@@ -22,6 +22,13 @@ eddb_states = {
   "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):
@@ -32,6 +39,7 @@ def get_state_id(name):
   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):