Skip to content

Commit

Permalink
Fix duplicate cache function
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldogsbody committed Jul 27, 2023
1 parent 52218f1 commit 7af6e25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iiify/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
app.config['CACHE_DIR'] = "cache"
cors = CORS(app) if cors else None
cache = Cache(app)
# cache.init_app(app)

def sprite_concat(imgs):
from PIL import Image
Expand Down Expand Up @@ -66,7 +67,7 @@ def catalog():
return ldjsonify(collection(domain, getids(q, limit, cursor)['ids']))

@app.route('/iiif/cache')
def cache():
def list_cache():
"""Lists all recently cached images"""
return jsonify({'identifiers': [f for f in os.listdir(media_root)]})

Expand Down

0 comments on commit 7af6e25

Please sign in to comment.