From d135807c26d44bdfaa28d16ab496ffcb15a0509f Mon Sep 17 00:00:00 2001 From: Seokyoung-Hong Date: Wed, 5 Jun 2024 12:52:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=EC=9D=84=20/tmp=20=EB=B0=91=EC=97=90=EC=84=9C=20=EB=8F=99?= =?UTF-8?q?=EC=9E=91=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20-=20=EA=B8=B0=EC=A1=B4=20=EC=97=85?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=8A=B8=EC=97=90=EC=84=9C=20=EB=88=84?= =?UTF-8?q?=EB=9D=BD=EB=90=9C=20=EB=B6=80=EB=B6=84=EC=9D=B4=20=EB=B0=9C?= =?UTF-8?q?=EA=B2=AC=EB=90=98=EC=96=B4=20=EC=88=98=EC=A0=95=ED=95=A9?= =?UTF-8?q?=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sandol/crawler/cafeteria.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sandol/crawler/cafeteria.py b/sandol/crawler/cafeteria.py index 022e954c..0557bbc8 100644 --- a/sandol/crawler/cafeteria.py +++ b/sandol/crawler/cafeteria.py @@ -177,8 +177,7 @@ def save_temp_menu(self): # only write temp_menu = {"lunch": self.temp_lunch, "dinner": self.temp_dinner} - current_dir = os.path.dirname(__file__) - filename = os.path.join(current_dir, f'{self.name}_temp_menu.json') + filename = os.path.join("/tmp", f'{self.name}_temp_menu.json') with open(filename, 'w', encoding='utf-8') as file: json.dump(temp_menu, file, ensure_ascii=False, indent=4) @@ -214,7 +213,6 @@ def submit(self): temp_menu.json 파일의 "lunch", "dinner" 데이터에 변화가 생길 때 원본 test.json 파일에 덮어씀, 동시에 self.temp_menu 초기화. """ - # TODO(Seokyoung_Hong): S3용으로 수정 필요 filename = os.path.join('/tmp', 'test.json') # read and write