X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a695f4ce2259e5758e56f36727ef0e0507b58f81..4daa3475da9a4d4de4488ec742c77248641e8c1e:/apps/api/handlers/library_handlers.py diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index 9d50d023..84881cee 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -238,7 +238,6 @@ class DocumentHTMLHandler(BaseHandler): # # Image Gallery # -from django.core.files.storage import FileSystemStorage class DocumentGalleryHandler(BaseHandler): allowed_methods = ('GET') @@ -256,7 +255,7 @@ class DocumentGalleryHandler(BaseHandler): gallery = {'name': assoc.name, 'pages': []} - for file in sorted(os.listdir(dirpath), key=natural_order()): + for file in sorted(os.listdir(dirpath)): log.info(file) name, ext = os.path.splitext(os.path.basename(file))