def viewContributionRatio(self): if not self.viewsExists: return None return float(CourseStats.getNumForumViews()) / float( CourseStats.getNumContributions())
def viewContributionRatio(self): if not self.viewsExists: return None return float(CourseStats.getNumForumViews())/float(CourseStats.getNumContributions())