Fix caching issue

This commit is contained in:
DarkPhoenix
2011-05-03 21:40:35 +04:00
parent fea2fef23e
commit 9bd12f463f

View File

@@ -567,6 +567,8 @@ class Market():
"""Get ships for given group id"""
grp = self.getGroup(grpid, eager = ("items", "items.group", "items.attributes"))
ships = self.getItemsByGroup(grp)
for ship in ships:
ship.race
return ships
def getShipListDelayed(self, id, callback):
@@ -587,7 +589,7 @@ class Market():
self.searchWorkerThread.scheduleSearch(name, callback)
def directAttrRequest(self, items, attrID):
itemIDs = map(lambda i: i.ID, items)
itemIDs = tuple(map(lambda i: i.ID, items))
info = {}
for ID, val in eos.db.directAttributeRequest(itemIDs, attrID):
info[ID] = val