Skip to content

Commit

Permalink
✨ Update freq string. #56
Browse files Browse the repository at this point in the history
  • Loading branch information
kinegratii committed Feb 18, 2024
1 parent d9a9b13 commit 447dfe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guides/festivals2.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ Festival.list_days_in_future(end_date=None, reverse: bool = False, count: int =
Festival.list_days_in_past(end_date=None, reverse: bool = False, count: int = -1) -> List[WrappedDate]
```

返回今后时间([today, end_date])之间(含起止日期)匹配本 Festival 的日期列表。
返回过去时间([today, end_date])之间(含起止日期)匹配本 Festival 的日期列表。

### get_one_day

Expand Down Expand Up @@ -693,7 +693,7 @@ pprint.pprint(days)
FestivalLibrary.monthdaycalendar(year: int, month: int, firstweekday: int = 0)
```

返回二维列表,每一行表示一个星期。逻辑同iter_month_daytuples
返回二维列表,每一行表示一个星期。逻辑同`iter_month_daytuples`

### to_csv

Expand Down
2 changes: 1 addition & 1 deletion tests/test_festival2_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_freq_string(self):
self.assertTrue(sf.is_(date(2024, 2, 1)))

with self.assertRaises(ValueError):
sf2 = SolarFestival(freq='33', day=1)
SolarFestival(freq='33', day=1)


class WeekFestivalTestCase(unittest.TestCase):
Expand Down

0 comments on commit 447dfe4

Please sign in to comment.