From: Adrian Iain Lam Date: Tue, 23 Jul 2019 07:25:07 +0000 (+0100) Subject: Fixed indentation bug causing solar terms to halve X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=HEAD;p=LunarCalendarPy.git Fixed indentation bug causing solar terms to halve --- 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):