From 9166364c075fa945901d09416093b9e523c93e33 Mon Sep 17 00:00:00 2001 From: Tung Lam Nguyen Le Date: Fri, 18 Jun 2021 09:57:57 +0700 Subject: [PATCH] Fix minor bugs --- kosmorrolib/events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kosmorrolib/events.py b/kosmorrolib/events.py index 9f8a88a..5ab7e84 100644 --- a/kosmorrolib/events.py +++ b/kosmorrolib/events.py @@ -262,7 +262,7 @@ def _search_earth_season_change(start_time: Time, end_time: Time, timezone: int) Will return nothing if there is no season change event in the period of time being calculated: - >>> _search_oppositions(get_timescale().utc(2021, 3, 20), get_timescale().utc(2021, 3, 21), 0) + >>> _search_earh_season_change(get_timescale().utc(2021, 3, 20), get_timescale().utc(2021, 3, 21), 0) [] """ @@ -274,8 +274,8 @@ def _search_earth_season_change(start_time: Time, end_time: Time, timezone: int) events.append(Event( EventType.SEASON_CHANGE, [], - translate_to_timezone(t.utc_datetime()[0], timezone)), - details={'season':SeasonType(y[0])} ) + translate_to_timezone(t.utc_datetime()[0], timezone), + details={'season':SeasonType(y[0])} )) return events