Proof of concept for gathering fits based on modules that are fit

This commit is contained in:
blitzman
2017-03-22 21:50:02 -04:00
parent c4293bba6b
commit 6c1d949cef
3 changed files with 19 additions and 18 deletions

View File

@@ -95,15 +95,10 @@ class Fit(object):
return names
@staticmethod
def getBoosterFits():
def getFitsWithModules(typeIDs):
""" Lists fits flagged as booster """
pyfalog.debug("Fetching all fits flagged as a booster.")
fits = eos.db.getBoosterFits()
names = []
for fit in fits:
names.append((fit.ID, fit.name, fit.shipID))
return names
fits = eos.db.getFitsWithModules(typeIDs)
return fits
@staticmethod
def countAllFits():