Post code-cleanup.

This commit is contained in:
lwark
2024-12-06 14:45:22 -06:00
parent 4ed5502c60
commit 51c419e470
11 changed files with 195 additions and 175 deletions

View File

@@ -11,6 +11,12 @@ month = date.today().month
day = date.today().day
def get_week_of_month() -> int:
"""
Gets the current week number of the month.
Returns:
int:
"""
for ii, week in enumerate(calendar.monthcalendar(date.today().year, date.today().month)):
if day in week:
return ii + 1