diff --git a/camera-node-ocr/ocr.py b/camera-node-ocr/ocr.py index de850dd3ed253bb2214e3ce610ba2a61485b2586..d54e097f1c05bc2ec8b2e0bd338f6f9606b7dbee 100644 --- a/camera-node-ocr/ocr.py +++ b/camera-node-ocr/ocr.py @@ -81,6 +81,7 @@ def handle_http_request(handler): def send_file_list(handler, dir_path): try: files = [file for file in os.listdir(dir_path) if os.path.isfile(os.path.join(dir_path, file))] + files.sort(reverse=True) handler.send_response(200) handler.send_header('Content-Type', 'application/json') handler.send_header('Access-Control-Allow-Origin', '*')