Make the prefetcher make eos use an optimized skill list with everything
prefetched
This commit is contained in:
2
eos
2
eos
Submodule eos updated: 5b7f8eaf71...fc317f1ba6
@@ -18,14 +18,13 @@
|
||||
#===============================================================================
|
||||
|
||||
import threading
|
||||
import service
|
||||
import eos.db
|
||||
import eos.types
|
||||
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
|
||||
try:
|
||||
eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "attributes.info.unit", "icon"))
|
||||
eos.types.Character.setSkillList(eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "attributes.info.unit", "icon")))
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user