From 1fccf6d7d9e588d08fb944cf26fcfacba43a0d61 Mon Sep 17 00:00:00 2001 From: Kontor Date: Wed, 10 Mar 2021 16:21:34 +0800 Subject: [PATCH] Update zhaoan.py --- worker/zhaoan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/zhaoan.py b/worker/zhaoan.py index 06da5d3..c8c0ecf 100644 --- a/worker/zhaoan.py +++ b/worker/zhaoan.py @@ -57,7 +57,7 @@ def calendar(): y = nowdate.year m = nowdate.month d = nowdate.day - zc = int(nowdate.strftime("%W")) - 1 + zc = int(nowdate.strftime("%W")) - 8 z = zmc[nowdate.weekday()] @@ -68,5 +68,5 @@ def calendar(): if lunarday.Lleap: lunardaychinese = "闰" + lunardaychinese - cal = f"{m}月{d}日,{lunardaychinese},寒假第{zc}周,星期{z}\n\n距离 2022 考研还有 {djs} 天" + cal = f"{m}月{d}日,{lunardaychinese},第{zc}教学周,星期{z}\n\n距离 2022 考研还有 {djs} 天" return cal