Misc workarounds.

This commit is contained in:
Nick Winter 2014-08-20 13:26:42 -07:00
parent 68677cf2a1
commit 28176c7f72
3 changed files with 3 additions and 2 deletions

View file

@ -236,6 +236,7 @@ module.exports = class Simulator extends CocoClass
_.delay @cleanupAndSimulateAnotherTask, @retryDelayInSeconds * 1000
processResults: (simulationResults) ->
return console.error "Weird, we destroyed the Simulator before it processed results?" if @destroyed
taskResults = @formTaskResultsObject simulationResults
unless taskResults.taskID
console.error "*** Error: taskResults has no taskID ***\ntaskResults:", taskResults

View file

@ -121,7 +121,7 @@ module.exports = class TomeView extends CocoView
spellKey = pathComponents.join '/'
@thangSpells[thang.id].push spellKey
unless method.cloneOf
skipProtectAPI = @getQueryVariable 'skip_protect_api', (@options.levelID in ['gridmancer'])
skipProtectAPI = @getQueryVariable 'skip_protect_api', (@options.levelID in ['gridmancer', 'minimax-tic-tac-toe'])
spell = @spells[spellKey] = new Spell
programmableMethod: method
spellKey: spellKey

View file

@ -8,7 +8,7 @@ User = require '../users/User'
sendwithus = require '../sendwithus'
PROJECT = {original: 1, name: 1, version: 1, description: 1, slug: 1, kind: 1}
FETCH_LIMIT = 200
FETCH_LIMIT = 300
module.exports = class Handler
# subclasses should override these properties