week number

This commit is contained in:
j 2025-02-23 11:19:23 -05:00
commit 21311303e1
3 changed files with 5 additions and 7 deletions

View file

@ -21,11 +21,10 @@ def get_auth(headers):
return auth
def send_week(date):
def send_week(monday):
from . import views
year, month, day = date.split('-')
date = datetime.strptime(date, '%Y-%m-%d')
monday = views.get_monday(date)
monday = views.get_monday(monday)
year, month, day = monday.split('-')
body = views.week(year, month, day)
name = 'weekly-digest-%s' % monday
subject = 'Phantas.ma weekly update %s' % views.format_week(monday)