also eagerly load marketgroups for ships

This commit is contained in:
cncfanatics
2010-09-23 18:21:33 +02:00
parent b72ac8e175
commit b5f070b9e0

View File

@@ -137,7 +137,7 @@ class Market():
def getShipList(self, id):
ships = []
grp = eos.db.getGroup(id, eager=("items"))
grp = eos.db.getGroup(id, eager=("items", "items.marketGroup"))
for item in grp.items:
if item.published or item.name in self.FORCED_SHIPS:
ships.append((item.ID, item.name, item.race))