Exemplo n.º 1
0
 def viewContributionRatio(self):
     if not self.viewsExists:
         return None
     return float(CourseStats.getNumForumViews()) / float(
         CourseStats.getNumContributions())
Exemplo n.º 2
0
 def viewContributionRatio(self):
     if not self.viewsExists:
         return None
     return float(CourseStats.getNumForumViews())/float(CourseStats.getNumContributions())
Exemplo n.º 3
0
 def numContributionsPerLectureActive(self):
     return float(CourseStats.getNumContributions()) / float(
         len(self.lectureActivesByAnon))
Exemplo n.º 4
0
 def numContributionsPerLectureActive(self):
     return float(CourseStats.getNumContributions()) / float(len(self.lectureActivesByAnon))