diff --git a/app/listmonk/utils.py b/app/listmonk/utils.py index 001fa5a..657c04d 100644 --- a/app/listmonk/utils.py +++ b/app/listmonk/utils.py @@ -23,7 +23,8 @@ def get_auth(headers): def send_week(monday): from . import views - monday = views.get_monday(monday) + date = datetime.strptime(date, '%Y-%m-%d') + monday = views.get_monday(date) year, month, day = monday.split('-') body = views.week(year, month, day) name = 'weekly-digest-%s' % monday