Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
479 B · 17 lines
at worker_error
123456789101112131415161718desc 'Reparse all runs and update their corresponding database information to match.'task reparse: [:environment] do Run.all.each do |run| next if run.parse.blank?
game = Game.find_by(name: run.parse.game) || Game.create(name: run.parse.game) run.category = Category.find_by( game: game, name: run.parse.category ) || game.categories.new( game: game, name: run.parse.category ) run.time = run.parse.time run.save endend