Source code for uw.local.grad.bin.send_digest_notifications

"""Automatic daily notification digest sending process.

Python process meant to be run automatically every morning to send daily digest
of notifications to those who have requested them.
"""

from uw.sql.wrap import open_psycopg2_db_service_cursor

from ..db.notification import send_digest_notifications

[docs]def main (): """Program entry point to send digest notifications. Invokes :func:`uw.local.grad.db.notification.send_digest_notifications`. """ cursor = open_psycopg2_db_service_cursor () send_digest_notifications (cursor) cursor.connection.commit ()