Removed debug stuff
This commit is contained in:
@@ -167,9 +167,7 @@ class ShipBrowser(wx.Panel):
|
|||||||
sFit = service.Fit.getInstance()
|
sFit = service.Fit.getInstance()
|
||||||
count = 0
|
count = 0
|
||||||
for ID,name,fits,race in content:
|
for ID,name,fits,race in content:
|
||||||
start = time.clock()
|
|
||||||
dbfits = len(sFit.getFitsWithShip(ID))
|
dbfits = len(sFit.getFitsWithShip(ID))
|
||||||
print time.clock()-start
|
|
||||||
if dbfits != fits:
|
if dbfits != fits:
|
||||||
fits = dbfits
|
fits = dbfits
|
||||||
self.stage2Cache[categoryID][count]= (ID,name,fits,race)
|
self.stage2Cache[categoryID][count]= (ID,name,fits,race)
|
||||||
@@ -248,6 +246,7 @@ class ShipBrowser(wx.Panel):
|
|||||||
self.lpane.AddWidget(PFStaticText(self.lpane, label = "No matching results."))
|
self.lpane.AddWidget(PFStaticText(self.lpane, label = "No matching results."))
|
||||||
self.lpane.RefreshList()
|
self.lpane.RefreshList()
|
||||||
self.Show()
|
self.Show()
|
||||||
|
|
||||||
class PFStaticText(wx.StaticText):
|
class PFStaticText(wx.StaticText):
|
||||||
def _init__(self,parent, label = wx.EmptyString):
|
def _init__(self,parent, label = wx.EmptyString):
|
||||||
wx.StaticText(self,parent,label)
|
wx.StaticText(self,parent,label)
|
||||||
|
|||||||
Reference in New Issue
Block a user