示例#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())
示例#3
0
 def numContributionsPerLectureActive(self):
     return float(CourseStats.getNumContributions()) / float(
         len(self.lectureActivesByAnon))
示例#4
0
 def numContributionsPerLectureActive(self):
     return float(CourseStats.getNumContributions()) / float(len(self.lectureActivesByAnon))