mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Modified level session schema to log playtime, renormalize score and name in matches
This commit is contained in:
parent
21ccaa2d8a
commit
2e36a3352e
1 changed files with 19 additions and 0 deletions
|
@ -113,6 +113,12 @@ _.extend LevelSessionSchema.properties,
|
|||
type: 'string'
|
||||
default: 'javascript'
|
||||
|
||||
playtime:
|
||||
type: 'number'
|
||||
title: 'Playtime'
|
||||
default: 0
|
||||
description: 'The total playtime on this session'
|
||||
|
||||
teamSpells:
|
||||
type: 'object'
|
||||
additionalProperties:
|
||||
|
@ -193,6 +199,11 @@ _.extend LevelSessionSchema.properties,
|
|||
date: c.date
|
||||
title: 'Date computed'
|
||||
description: 'The date a match was computed.'
|
||||
playtime:
|
||||
title: 'Playtime so far'
|
||||
description: 'The total seconds of playtime on this session when the match was computed.'
|
||||
type: 'number'
|
||||
|
||||
metrics:
|
||||
type: 'object'
|
||||
title: 'Metrics'
|
||||
|
@ -217,6 +228,14 @@ _.extend LevelSessionSchema.properties,
|
|||
title: 'Opponent User ID'
|
||||
description: 'The user ID of an opponent'
|
||||
type: ['object','string']
|
||||
name:
|
||||
title: 'Opponent name'
|
||||
description: 'The name of the opponent'
|
||||
type: 'string'
|
||||
totalScore:
|
||||
title: 'Opponent total score'
|
||||
description: 'The totalScore of a user when the match was computed'
|
||||
type: 'number'
|
||||
metrics:
|
||||
type: 'object'
|
||||
properties:
|
||||
|
|
Loading…
Reference in a new issue