mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-04 17:19:47 -04:00
🐛Fix course details average playtime calc
This commit is contained in:
parent
2767bbb639
commit
c3af5324d5
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue