Finish up apsw changes

This commit is contained in:
cncfanatics
2010-10-15 21:51:42 +02:00
parent 8cb1221174
commit c881360917
3 changed files with 22 additions and 27 deletions

View File

@@ -4,4 +4,3 @@ from service.attribute import Attribute
from service.character import Character
from service.damagePattern import DamagePattern
from service.settings import Settings
from service import prefetch

View File

@@ -20,22 +20,16 @@
import threading
import service
import eos.db
import time
class PrefetchThread(threading.Thread):
def run(self):
# We're a daemon thread, as such, interpreter might get shut down while we do stuff
# Make sure we don't throw tracebacks to console
print "Prefetch started"
time.clock()
eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "icon"))
cMarket = service.Market.getInstance()
root = cMarket.getShipRoot()
for id, _ in root:
cMarket.getShipList(id)
cMarket.getShipList(id)
print "Prefetch stopped", time.clock()
#prefetch = PrefetchThread()
#prefetch.daemon = True
#prefetch.start()
prefetch = PrefetchThread()
prefetch.daemon = True
prefetch.start()