Fix silly bug which broke ship browser

This commit is contained in:
DarkPhoenix
2011-04-24 01:29:55 +04:00
parent fb665de2f8
commit c76e6a06d4
2 changed files with 4 additions and 8 deletions

View File

@@ -53,8 +53,8 @@ class BoosterView(d.Display):
event.Skip()
return
cFit = service.Fit.getInstance()
fit = cFit.getFit(event.fitID)
sFit = service.Fit.getInstance()
fit = sFit.getFit(event.fitID)
stuff = fit.boosters if fit is not None else None

View File

@@ -444,11 +444,7 @@ class Market():
return groups
def getMarketGroupChildren(self, mg):
"""
Get the children marketGroups of marketGroup with the passed id.
Returns a list, where each element is:
(id, name, icon, does it has child market groups or not)
"""
"""Get the children marketGroups of marketGroup."""
children = set()
for child in mg.children:
children.add(child)
@@ -560,7 +556,7 @@ class Market():
def getShipList(self, grpid):
"""Get ships for given group id"""
ships = []
grp = self.getGroup(id, eager=("items", "items.marketGroup", "items.attributes"))
grp = self.getGroup(grpid, eager=("items", "items.marketGroup", "items.attributes"))
for item in grp.items:
if self.getPublicityByItem(item):
ships.append((item.ID, item.name, item.race))