Fixed Typo Error
This commit is contained in:
parent
77c36791c0
commit
91dbac170b
1 changed files with 6 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ with open('./config.json') as json_file:
|
||||||
json_data = json.load(json_file)
|
json_data = json.load(json_file)
|
||||||
KEY = json_data['KEY']
|
KEY = json_data['KEY']
|
||||||
ROOT = json_data['ROOT']
|
ROOT = json_data['ROOT']
|
||||||
font = f"{ROOT}library/Pretendard-Bold.ttf"
|
font = f"{ROOT}/library/Pretendard-Bold.ttf"
|
||||||
WEBHOOK_URL = json_data['WEBHOOK_URL']
|
WEBHOOK_URL = json_data['WEBHOOK_URL']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -45,10 +45,10 @@ def 급식_칼로리_얻기(MLSV_YMD:str):
|
||||||
def 얻기(MLSV_YMD:str):
|
def 얻기(MLSV_YMD:str):
|
||||||
print("집가고싶다발동")
|
print("집가고싶다발동")
|
||||||
급식 = 급식_정보_얻기(MLSV_YMD)
|
급식 = 급식_정보_얻기(MLSV_YMD)
|
||||||
# print(f"{ROOT}library/skeleton.png")
|
# print(f"{ROOT}/library/skeleton.png")
|
||||||
사진 = Image.open(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, 56)
|
||||||
세부_폰트 = ImageFont.truetype(font, 24)
|
세부_폰트 = 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((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))
|
세부요소.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")
|
print("🍲 | Meal Info Image Saved")
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ def 스토리_얻기(MLSV_YMD:str):
|
||||||
print("이건 왜?")
|
print("이건 왜?")
|
||||||
# 1:1 to 9:16 temp/{MLSV_YMD}.png
|
# 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
|
가로, 세로 = 사진.size
|
||||||
비율 = 9 / 16
|
비율 = 9 / 16
|
||||||
가로_비율 = 가로 / 세로
|
가로_비율 = 가로 / 세로
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue