18 lines
396 B
Python
Executable file
18 lines
396 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import datetime, os
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ietf.settings")
|
|
|
|
import django
|
|
django.setup()
|
|
|
|
from ietf.doc.expire import get_soon_to_expire_drafts, send_expire_warning_for_draft
|
|
|
|
|
|
# notify about documents that expire within the next 2 weeks
|
|
notify_days = 14
|
|
|
|
for doc in get_soon_to_expire_drafts(notify_days):
|
|
send_expire_warning_for_draft(doc)
|