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

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

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/views/memebot.py   madcow(Download)
def view_scores(request):
    """View scoreboard"""
    profiles = UserProfile.objects.get_by_score()
    return direct_to_template(request, 'memebot/scores.html', {'profiles': profiles})
 

src/m/a/madcow-HEAD/madcow/modules/djmemebot.py   madcow(Download)
    def get_scores(self, range=None, name=None):
        from gruntle.memebot.models import UserProfile
        if name is not None:
            name = name.lower()
        profiles = [(i + 1, profile) for i, profile in enumerate(UserProfile.objects.get_by_score())