mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Disable esper, LevelSession.state.dateFirstCompleted schema restriction
This commit is contained in:
parent
2faca0419b
commit
c707129b5e
2 changed files with 9 additions and 9 deletions
|
@ -8,12 +8,12 @@ module.exports.createAetherOptions = (options) ->
|
|||
throw new Error 'Specify a code language to create an Aether instance' unless options.codeLanguage
|
||||
|
||||
useInterpreter = options.useInterpreter
|
||||
defaultToEsper = switch options.codeLanguage
|
||||
when 'python' then me.level() < 15 # Esper currently works well until using range()
|
||||
when 'javascript' then me.level() < 22 # Esper currently works well until using hero.myFn = function() pattern
|
||||
when 'lua' then me.level() < 10 # Functions don't work in Esper yet, can't play forest function levels
|
||||
when 'coffeescript' then false # CoffeeScript has a toNative error if it ever finishes plan(), and also @fn = -> pattern doesn't work
|
||||
when 'clojure' then false # No Clojure support
|
||||
defaultToEsper = false #switch options.codeLanguage
|
||||
# when 'python' then me.level() < 15 # Esper currently works well until using range()
|
||||
# when 'javascript' then me.level() < 22 # Esper currently works well until using hero.myFn = function() pattern
|
||||
# when 'lua' then me.level() < 10 # Functions don't work in Esper yet, can't play forest function levels
|
||||
# when 'coffeescript' then false # CoffeeScript has a toNative error if it ever finishes plan(), and also @fn = -> pattern doesn't work
|
||||
# when 'clojure' then false # No Clojure support
|
||||
useInterpreter ?= !!utils.getQueryVariable 'esper', defaultToEsper
|
||||
aetherOptions =
|
||||
functionName: options.functionName
|
||||
|
|
|
@ -55,9 +55,9 @@ _.extend LevelSessionSchema.properties,
|
|||
title: 'Changed'
|
||||
readOnly: true
|
||||
|
||||
dateFirstCompleted: c.stringDate
|
||||
title: 'Completed'
|
||||
readOnly: true
|
||||
dateFirstCompleted: {} # c.stringDate
|
||||
# title: 'Completed'
|
||||
# readOnly: true
|
||||
|
||||
team: c.shortString()
|
||||
level: LevelSessionLevelSchema
|
||||
|
|
Loading…
Reference in a new issue