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

Method onSessionsLoaded

app/views/ladder/LadderView.js:188–200  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

186 }
187
188 onSessionsLoaded (e) {
189 return (() => {
190 const result = []
191 for (const session of Array.from(this.sessions.models)) {
192 if (_.isEmpty(session.get('code'))) {
193 result.push(session.set('code', session.get('submittedCode')))
194 } else {
195 result.push(undefined)
196 }
197 }
198 return result
199 })()
200 }
201
202 getTournamentState (mandate, courseInstanceID, levelSlug, timeOffset) {
203 const tournament = _.find(mandate.currentTournament || [], t => (t.courseInstanceID === courseInstanceID) && (t.level === levelSlug))

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected