Fixed indentation bug causing solar terms to halve master
authorAdrian Iain Lam <adrianiainlam@users.noreply.github.com>
Tue, 23 Jul 2019 07:25:07 +0000 (08:25 +0100)
committerAdrian Iain Lam <adrianiainlam@users.noreply.github.com>
Tue, 23 Jul 2019 07:25:07 +0000 (08:25 +0100)
.gitignore [new file with mode: 0644]
LunarCalendar.py

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c18dd8d
--- /dev/null
@@ -0,0 +1 @@
+__pycache__/
index 1ff374e..eba3ff7 100644 (file)
@@ -195,7 +195,7 @@ class LunarCalendar:
             day = self.__getTerm(year, i)
             if i % 2 == 0:
                 month += 1
             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):
         return res
 
     def __getYearZodiac(self, year):