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

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

src/f/l/flamejam-HEAD/flamejam/models/game.py   flamejam(Download)
# -*- coding: utf-8 -*-
 
from flamejam import app, db
from flamejam.utils import get_slug, average, average_non_zero
from flamejam.models.gamescreenshot import GameScreenshot
    def score(self):
        if self.has_cheated:
            return -10
 
        return average([r.score for r in self.ratings if not r.user.is_deleted]) or 0