🐛Fix course details average playtime calc

This commit is contained in:
Matt Lott 2015-10-07 17:14:56 -07:00
parent 2767bbb639
commit c3af5324d5

View file

@ -169,6 +169,7 @@ module.exports = class CourseDetailsView extends RootView
if @courseInstance.get('members').length > 0
@instanceStats.averageLevelsCompleted = @instanceStats.totalLevelsCompleted / @courseInstance.get('members').length
@instanceStats.averageLevelPlaytime = @instanceStats.totalPlayTime / @courseInstance.get('members').length
for levelID, level of @campaign.get('levels')
@instanceStats.furthestLevelCompleted = level.name if levelStateMap[levelID] is 'complete'