From 02f483aa6807d39db219e7395adbf1d61a77b345 Mon Sep 17 00:00:00 2001 From: Akira Date: Sun, 10 Nov 2024 01:09:55 +0900 Subject: [PATCH] Fix goal image --- SumasenLibs/excel_lib/sumaexcel/sumaexcel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py b/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py index b85ef32..6c8c1ca 100644 --- a/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py +++ b/SumasenLibs/excel_lib/sumaexcel/sumaexcel.py @@ -350,6 +350,9 @@ class SumasenExcel: # checkinパスの場合 elif value.startswith('checkin/'): return os.path.join("/app/media", value) + # goalsパスの場合 + elif value.startswith('goals/'): + return os.path.join("/app/media", value) # ファイル名のみの場合 elif re.search(r'\.(jpg|jpeg|png|gif|bmp|mpo)$', value, re.I): return os.path.join("/app/media/compressed", value)