mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-02 17:03:42 -04:00
Removed empty file and unused function
This commit is contained in:
parent
21d056ff01
commit
3ff66d7807
2 changed files with 1 additions and 14 deletions
server
|
@ -15,20 +15,7 @@ sendwithus = require '../sendwithus'
|
||||||
module.exports.setup = (app) ->
|
module.exports.setup = (app) ->
|
||||||
app.all config.mail.mailchimpWebhook, handleMailchimpWebHook
|
app.all config.mail.mailchimpWebhook, handleMailchimpWebHook
|
||||||
app.get '/mail/cron/ladder-update', handleLadderUpdate
|
app.get '/mail/cron/ladder-update', handleLadderUpdate
|
||||||
|
|
||||||
getAllLadderScores = (next) ->
|
|
||||||
query = Level.find({type: 'ladder'})
|
|
||||||
.select('levelID')
|
|
||||||
.lean()
|
|
||||||
query.exec (err, levels) ->
|
|
||||||
if err
|
|
||||||
log.error 'Couldn\'t fetch ladder levels. Error: ', err
|
|
||||||
return next []
|
|
||||||
for level in levels
|
|
||||||
for team in ['humans', 'ogres']
|
|
||||||
'I ... am not doing this.'
|
|
||||||
# Query to get sessions to make histogram
|
|
||||||
# db.level.sessions.find({'submitted': true, 'levelID': 'brawlwood', team: 'ogres'}, {'_id': 0, 'totalScore': 1})
|
|
||||||
|
|
||||||
DEBUGGING = false
|
DEBUGGING = false
|
||||||
LADDER_PREGAME_INTERVAL = 2 * 3600 * 1000 # Send emails two hours before players last submitted.
|
LADDER_PREGAME_INTERVAL = 2 * 3600 * 1000 # Send emails two hours before players last submitted.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue