Fixed Typo Error

This commit is contained in:
암냥 2025-02-02 14:03:25 +09:00 committed by GitHub
commit 91dbac170b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ with open('./config.json') as json_file:
json_data = json.load(json_file)
KEY = json_data['KEY']
ROOT = json_data['ROOT']
font = f"{ROOT}library/Pretendard-Bold.ttf"
font = f"{ROOT}/library/Pretendard-Bold.ttf"
WEBHOOK_URL = json_data['WEBHOOK_URL']
@ -45,10 +45,10 @@ def 급식_칼로리_얻기(MLSV_YMD:str):
def 얻기(MLSV_YMD:str):
print("집가고싶다발동")
급식 = 급식_정보_얻기(MLSV_YMD)
# print(f"{ROOT}library/skeleton.png")
사진 = Image.open(f"{ROOT}library/skeleton.png")
# print(f"{ROOT}/library/skeleton.png")
사진 = Image.open(f"{ROOT}/library/skeleton.png")
#if vts.get_vts_true_or_false() == True: 사진 = Image.open(f'{ROOT}library/skeleton-vts.png')
#if vts.get_vts_true_or_false() == True: 사진 = Image.open(f'{ROOT}/library/skeleton-vts.png')
급식_폰트 = ImageFont.truetype(font, 56)
세부_폰트 = ImageFont.truetype(font, 24)
@ -61,7 +61,7 @@ def 얻기(MLSV_YMD:str):
세부요소.text((767, 80), f"{MLSV_YMD[:4]}{MLSV_YMD[4:6]}{MLSV_YMD[6:8]}", font=세부_폰트, fill=(255, 255, 255))
세부요소.text((825, 200), f"{급식_칼로리_얻기(MLSV_YMD)}", font=세부_폰트, fill=(137, 202, 255))
사진.save(f'{ROOT}temp/{MLSV_YMD}.png')
사진.save(f'{ROOT}/temp/{MLSV_YMD}.png')
print("🍲 | Meal Info Image Saved")
@ -69,7 +69,7 @@ def 스토리_얻기(MLSV_YMD:str):
print("이건 왜?")
# 1:1 to 9:16 temp/{MLSV_YMD}.png
사진 = Image.open(f"{ROOT}temp/{MLSV_YMD}.png")
사진 = Image.open(f"{ROOT}/temp/{MLSV_YMD}.png")
가로, 세로 = 사진.size
비율 = 9 / 16
가로_비율 = 가로 / 세로