From 10ca53d7f953276b87b5f53f0a581d7abdb28a1f Mon Sep 17 00:00:00 2001
From: Han Donghyeon <hando1220@ajou.ac.kr>
Date: Wed, 4 Dec 2024 22:12:06 +0900
Subject: [PATCH] =?UTF-8?q?feat(ocr):=20=EC=B0=A8=EB=9F=89=20=EB=A1=9C?=
 =?UTF-8?q?=EA=B7=B8=20=EC=A1=B0=ED=9A=8C=20API=20=EC=A0=95=EB=A0=AC=20?=
 =?UTF-8?q?=EC=B6=94=EA=B0=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 camera-node-ocr/ocr.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/camera-node-ocr/ocr.py b/camera-node-ocr/ocr.py
index de850dd..d54e097 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', '*')
-- 
GitLab