Cleanup debug statements

This commit is contained in:
Andrew Tomaka 2015-04-26 09:18:40 -04:00
parent ca58bc03f1
commit ba0b5f1dbb

4
app.rb
View file

@ -1,8 +1,6 @@
require 'sinatra' require 'sinatra'
require 'sinatra/activerecord' require 'sinatra/activerecord'
require 'json' require 'json'
require 'mechanize'
require 'nokogiri'
require './environments' require './environments'
require './models/raid' require './models/raid'
@ -18,8 +16,6 @@ get '/' do
leaders = Leader.all leaders = Leader.all
last_update = leaders.first ? leaders.first.created_at : DateTime.new(0) last_update = leaders.first ? leaders.first.created_at : DateTime.new(0)
pp last_update
pp DateTime.now
rebuild_leaders if last_update + 300 < DateTime.now rebuild_leaders if last_update + 300 < DateTime.now
@top20 = leaders.map { |l| { user: l.leader, date: nil } } @top20 = leaders.map { |l| { user: l.leader, date: nil } }