Exemplo n.º 1
0
def send_automated_emails():
    from uber.tasks.email import send_automated_emails as send_emails
    Session.initialize_db(initialize=True)
    timed(AutomatedEmail.reconcile_fixtures)()
    results = timed(send_emails)()
    if results:
        print('Unapproved email counts:\n{}'.format(dumps(results, indent=2, sort_keys=True)))
Exemplo n.º 2
0
def send_automated_emails():
    from uber.tasks.email import send_automated_emails as send_emails
    Session.initialize_db(initialize=True)
    timed(AutomatedEmail.reconcile_fixtures)()
    results = timed(send_emails)()
    if results:
        print('Unapproved email counts:\n{}'.format(dumps(results, indent=2, sort_keys=True)))
Exemplo n.º 3
0
def notify_admins_of_pending_emails():
    from uber.tasks.email import notify_admins_of_pending_emails as notify_admins
    Session.initialize_db(initialize=True)
    results = timed(notify_admins)()
    if results:
        print('Notification emails sent to:\n{}'.format(
            dumps(results, indent=2, sort_keys=True)))
Exemplo n.º 4
0
def notify_admins_of_pending_emails():
    from uber.tasks.email import notify_admins_of_pending_emails as notify_admins
    Session.initialize_db(initialize=True)
    results = timed(notify_admins)()
    if results:
        print('Notification emails sent to:\n{}'.format(dumps(results, indent=2, sort_keys=True)))