about summary refs log tree commit diff stats
path: root/app/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/pokeviewer/extract_save_data_job.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index d1968af..b0999ef 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb
@@ -169,7 +169,7 @@ module Pokeviewer
169 rev.earth_ribbon = param.fetch "earthRibbon", false 169 rev.earth_ribbon = param.fetch "earthRibbon", false
170 rev.world_ribbon = param.fetch "worldRibbon", false 170 rev.world_ribbon = param.fetch "worldRibbon", false
171 171
172 if pk.revisions.empty? or rev.diff?(pk.revisions.last) 172 if pk.revisions.empty? or rev.diff?(pk.current)
173 rev.save! 173 rev.save!
174 end 174 end
175 end 175 end