def GetNotificationsByPriority(self, queue):
    # Check which sessions have new data.
    # Read all the sessions that have notifications.
    queue_shard = self.GetNotificationShard(queue)
    return self._SortByPriority(
        self._GetUnsortedNotifications(queue_shard).values(), queue)
Fetch a single "page" of query results.
dataset/ETHPy150Open google/grr/grr/lib/queue_manager.py/QueueManager.GetNotificationsByPriority--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/datastore/query.py/Iterator.next_page