Fix silly bug which broke ship browser
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user