arcshukla's picture
major refactor: split code into multiple files and add OTP-based authentication
e607be3
Raw
History Blame Contribute Delete
225 Bytes
"""Date utility helpers shared across routers."""
from datetime import date, timedelta
def monday_of_week(d: date) -> date:
"""Return the Monday of the week containing *d*."""
return d - timedelta(days=d.weekday())