Set Victor and Virtuso to not published, and fix bug which allowed user fits to return in search even if ship isn't published (#1310)

This commit is contained in:
blitzmann
2017-10-28 19:17:41 -04:00
parent 3b61a07c55
commit 266b3ce985
2 changed files with 8 additions and 0 deletions

View File

@@ -378,6 +378,10 @@ class ShipBrowser(wx.Panel):
for ID, name, shipID, shipName, booster, timestamp, notes in fitList:
ship = sMkt.getItem(shipID)
if not sMkt.getPublicityByItem(ship):
continue
shipTrait = ship.traits.traitText if (ship.traits is not None) else "" # empty string if no traits
self.lpane.AddWidget(FitItem(self.lpane, ID, (shipName, shipTrait, name, booster, timestamp, notes), shipID))