示例#1
0
 def viewContributionRatio(self):
     if not self.viewsExists:
         return None
     return float(CourseStats.getNumForumViews()) / float(
         CourseStats.getNumContributions())
示例#2
0
 def viewContributionRatio(self):
     if not self.viewsExists:
         return None
     return float(CourseStats.getNumForumViews())/float(CourseStats.getNumContributions())