From 496b85f956533ad9c03be694ce4187715d5a5b0a Mon Sep 17 00:00:00 2001 From: Adrian Iain Lam Date: Tue, 23 Jul 2019 08:25:07 +0100 Subject: [PATCH] Fixed indentation bug causing solar terms to halve --- .gitignore | 1 + LunarCalendar.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c18dd8d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/LunarCalendar.py b/LunarCalendar.py index 1ff374e..eba3ff7 100644 --- a/LunarCalendar.py +++ b/LunarCalendar.py @@ -195,7 +195,7 @@ class LunarCalendar: day = self.__getTerm(year, i) if i % 2 == 0: month += 1 - res[self.__formatDayD4(month - 1, day)] = self.__solarTerm[i] + res[self.__formatDayD4(month - 1, day)] = self.__solarTerm[i] return res def __getYearZodiac(self, year): -- 2.7.4