Indicate that current date is returned if it is also a draw date
This commit is contained in:
1 parent
3c89a51cfe
commit
7c7f5cb9a7
1 file changed
+2
@@ -5,6 +5,8 @@ from dateutil.relativedelta import relativedelta, MO, TU, WE, FR
|
|||||||
def get_next_draw_date(game: str, from_date: str | None = None) -> str:
|
def get_next_draw_date(game: str, from_date: str | None = None) -> str:
|
||||||
"""
|
"""
|
||||||
Gets the next drawing date from the current or specified date for the given game
|
Gets the next drawing date from the current or specified date for the given game
|
||||||
|
If the current date is the next drawing date, the current date is returned
|
||||||
|
|
||||||
:param game: megamillions or powerball
|
:param game: megamillions or powerball
|
||||||
:param from_date: date to get next drawing date from, if omitted the current date is used
|
:param from_date: date to get next drawing date from, if omitted the current date is used
|
||||||
:return: next drawing date
|
:return: next drawing date
|
||||||
|
|||||||
Reference in new issue
Block a user