17 lines
390 B
Python
Executable file
17 lines
390 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import datetime
|
|
|
|
from ietf import settings
|
|
from django.core import management
|
|
management.setup_environ(settings)
|
|
|
|
from ietf.idrfc.expire import get_soon_to_expire_ids, send_expire_warning_for_id
|
|
|
|
|
|
# notify about documents that expire within the next 2 weeks
|
|
notify_days = 14
|
|
|
|
for doc in get_soon_to_expire_ids(notify_days):
|
|
send_expire_warning_for_id(doc)
|