Search fits too

This commit is contained in:
DarkPhoenix
2010-08-22 22:58:52 +04:00
parent 2a9e72d031
commit b8c42319e8
2 changed files with 13 additions and 0 deletions

View File

@@ -87,6 +87,14 @@ class Market():
return ships
def searchFits(self, name):
results = eos.db.searchFits(name)
fits = []
for fit in results:
fits.append((fit.ID, fit.name, fit.ship.item.race, fit.ship.item.name))
return fits
def getMarketRoot(self):
"""
Get the root of the market tree.