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

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

src/p/o/portfoliyo-HEAD/portfoliyo/model/village/unread.py   portfoliyo(Download)
def all_unread(student, profile):
    """Return set of post IDs in ``student`` village unread by ``profile``."""
    return redis.client.smembers(make_key(student, profile))
 
 

src/p/o/portfoliyo-HEAD/portfoliyo/announce/models.py   portfoliyo(Download)
def get_unread(profile):
    """Get unread announcements for given profile."""
    announcement_ids = redis.client.smembers(make_key(profile.id))
 
    return Announcement.objects.filter(pk__in=announcement_ids).order_by(

src/p/o/portfoliyo-HEAD/portfoliyo/notifications/store.py   portfoliyo(Download)
def pending_profile_ids():
    """Get list of profile IDs with pending triggering notifications."""
    return redis.client.smembers(PENDING_PROFILES_KEY)