diff --git a/Layerfile b/Layerfile index 66325cc..3c6b7ca 100644 --- a/Layerfile +++ b/Layerfile @@ -1,6 +1,6 @@ -FROM vm/ubuntu:18.04 +FROM vm/ubuntu:22.04 -RUN apt-get update && apt-get install python3.8 python3-pip +RUN apt-get update && apt-get install python3.11 python3-pip COPY . . RUN pip3 install poetry==1.8.2 && poetry install diff --git a/main.py b/main.py index fa75272..5466615 100644 --- a/main.py +++ b/main.py @@ -58,7 +58,7 @@ def daily_login(ptt_id: str, ptt_passwd: str): else: user = ptt.get_user(ptt_id) text = f"✅ PTT {ptt_id} 已成功簽到\n" - text += f'📆 已登入 {user.get('login_count')} 天\n' + text += f"📆 已登入 {user.get('login_count')} 天\n" text += "📫 " + user.get("mail") + "\n" now: datetime = datetime.now(tz)