mirror of
https://github.com/nikdoof/dropbot.git
synced 2025-12-22 06:09:27 +00:00
@@ -50,6 +50,8 @@ Updating the SDE data
|
||||
|
||||
To update the SDE data in the bot, use the ```gen_reference_data.py``` with a copy of the Sqlite conversion of the SDE, this will produce three json files that need to be copied to the data directory witthin the ```dropbot``` package.
|
||||
|
||||
The SDE conversion is usually available here: https://www.fuzzwork.co.uk/dump/
|
||||
|
||||
$ python gen_reference_data.py eve.db
|
||||
Importing Types...
|
||||
Importing Stations...
|
||||
@@ -58,4 +60,4 @@ To update the SDE data in the bot, use the ```gen_reference_data.py``` with a co
|
||||
map.json
|
||||
stations.json
|
||||
types.json
|
||||
|
||||
$ cp -i map.json stations.json types.json dropbot/data/
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -26,7 +26,7 @@ class MapTestCase(TestCase):
|
||||
"""Check partial matching of system names works correctly"""
|
||||
self.assertEquals(len(self.map.get_systems('Jita')), 1)
|
||||
self.assertEquals(len(self.map.get_systems('Ji')), 7)
|
||||
self.assertEquals(len(self.map.get_systems('J')), 2760)
|
||||
self.assertEquals(len(self.map.get_systems('J')), 2765)
|
||||
self.assertEquals(len(self.map.get_systems('123435345345')), 0)
|
||||
self.assertEquals(len(self.map.get_systems('jita')), 1)
|
||||
self.assertEquals(len(self.map.get_systems('JITA')), 1)
|
||||
@@ -222,4 +222,4 @@ class MapTestCase(TestCase):
|
||||
ship_ranges = [5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
|
||||
for skill in range(0, 6):
|
||||
jump_range = ship_ranges[skill]
|
||||
self.assertEquals(ship_class_to_range('jumpfreighter', skill), jump_range)
|
||||
self.assertEquals(ship_class_to_range('jumpfreighter', skill), jump_range)
|
||||
|
||||
Reference in New Issue
Block a user