desc "Sync steam stats for recently logged in users"
task :sync_stats => :environment do
  Player.where(:last_viewed.gte => 1.week.ago).each do |player|
    player.latest_stats
  end
end
desc "Sync steam stats for recently logged in users"
task :sync_stats => :environment do
  Player.where(:last_viewed.gte => 1.week.ago).each do |player|
    begin
      player.latest_stats
    rescue
    end
  end
end
Fix rake task so that a single sync failure wont stop the process
Fix rake task so that a single sync failure wont stop the process
