From f7c6a29ddf8899726d92c2cd5c1b3126017cc0f0 Mon Sep 17 00:00:00 2001 From: AndreaPB Date: Mon, 16 Sep 2024 16:50:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=2023-24=20=E5=85=83?= =?UTF-8?q?=E6=97=A6=E5=81=87=E6=9C=9F=E8=B0=83=E4=BC=91=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=20(#118)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chinese_calendar/constants.py | 2 ++ chinese_calendar/scripts/data.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/chinese_calendar/constants.py b/chinese_calendar/constants.py index 6bfb4b8..9fd7649 100644 --- a/chinese_calendar/constants.py +++ b/chinese_calendar/constants.py @@ -558,6 +558,8 @@ def __new__(cls, english, chinese, days): datetime.date(year=2023, month=10, day=4): Holiday.national_day.value, datetime.date(year=2023, month=10, day=5): Holiday.national_day.value, datetime.date(year=2023, month=10, day=6): Holiday.national_day.value, + datetime.date(year=2023, month=12, day=30): Holiday.new_years_day.value, + datetime.date(year=2023, month=12, day=31): Holiday.new_years_day.value, datetime.date(year=2024, month=1, day=1): Holiday.new_years_day.value, datetime.date(year=2024, month=2, day=10): Holiday.spring_festival.value, datetime.date(year=2024, month=2, day=11): Holiday.spring_festival.value, diff --git a/chinese_calendar/scripts/data.py b/chinese_calendar/scripts/data.py index f064d8c..1944da3 100644 --- a/chinese_calendar/scripts/data.py +++ b/chinese_calendar/scripts/data.py @@ -101,7 +101,8 @@ def _2023(self): .ld().rest(4, 29).to(5, 3).work(4, 23).work(5, 6).in_lieu(5, 2).to(5, 3) \ .dbf().rest(6, 22).to(6, 24).work(6, 25).in_lieu(6, 23) \ .maf().rest(9, 29) \ - .nd().rest(9, 30).to(10, 6).work(10, 7).to(10, 8).in_lieu(10, 5).to(10, 6) + .nd().rest(9, 30).to(10, 6).work(10, 7).to(10, 8).in_lieu(10, 5).to(10, 6)\ + .nyd().rest(12, 30).to(12, 31) def _2022(self): """ http://www.gov.cn/zhengce/content/2021-10/25/content_5644835.htm