Added mana icon files, limit search results to 50, improved caching

This commit is contained in:
luxick
2017-02-15 13:57:31 +01:00
parent ca28a4dc12
commit dd29cbea65
59 changed files with 16 additions and 9 deletions

View File

@@ -18,11 +18,10 @@ def reload_image_cache():
# return array of images
imageslist = os.listdir(config.cachepath)
loadedimages = []
imagecache.clear()
for image in imageslist:
img = PImage.open(config.cachepath + image)
loadedimages.append(img)
return loadedimages
imagecache.append(img)
def add_test_image():