MCPcopy Create free account
hub / github.com/codecombat/codecombat / refresh

Method refresh

app/views/ladder/SimulateTabView.js:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 refresh () {
109 if (!(this.simulatorsLeaderboardData.numberOfGamesInQueue > 0)) { return } // Queue-based scoring is currently not active anyway, so don't keep checking this until we fix it.
110 const success = numberOfGamesInQueue => {
111 if (this.destroyed) { return }
112 this.simulatorsLeaderboardData.numberOfGamesInQueue = numberOfGamesInQueue
113 return $('#games-in-queue').text(numberOfGamesInQueue)
114 }
115 return $.ajax('/db/level/-/ladder-match-queue-count', { cache: false, success })
116 }
117
118 updateSimulationStatus (simulationStatus, sessions) {
119 if (simulationStatus === 'Fetching simulation data!') {

Callers 1

refreshViewsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected