Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/p/o/portfoliyo-HEAD/portfoliyo/tasks.py   portfoliyo(Download)
def check_for_pending_notifications():
    """Trigger notifications to all users with pending notifications."""
    from portfoliyo.notifications import store
    for profile_id in store.pending_profile_ids():
        send_notification_email.delay(profile_id)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/test_store.py   portfoliyo(Download)
"""Tests for notification storage/retrieval."""
from django.conf import settings
import mock
 
from portfoliyo.notifications import store