diff options
Diffstat (limited to 'app/jobs')
-rw-r--r-- | app/jobs/pokeviewer/extract_save_data_job.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index be8f64d..f7b8f8f 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb | |||
@@ -109,6 +109,24 @@ module Pokeviewer | |||
109 | rev.move_4_pp_bonuses = param["moves"][3]["ppBonuses"] | 109 | rev.move_4_pp_bonuses = param["moves"][3]["ppBonuses"] |
110 | end | 110 | end |
111 | 111 | ||
112 | rev.cool_ribbons = param["coolRibbons"] | ||
113 | rev.beauty_ribbons = param["beautyRibbons"] | ||
114 | rev.cute_ribbons = param["cuteRibbons"] | ||
115 | rev.smart_ribbons = param["smartRibbons"] | ||
116 | rev.tough_ribbons = param["toughRibbons"] | ||
117 | rev.champion_ribbon = param.fetch "championRibbon", false | ||
118 | rev.winning_ribbon = param.fetch "winningRibbon", false | ||
119 | rev.victory_ribbon = param.fetch "victoryRibbon", false | ||
120 | rev.artist_ribbon = param.fetch "artistRibbon", false | ||
121 | rev.effort_ribbon = param.fetch "effortRibbon", false | ||
122 | rev.marine_ribbon = param.fetch "marineRibbon", false | ||
123 | rev.land_ribbon = param.fetch "landRibbon", false | ||
124 | rev.sky_ribbon = param.fetch "skyRibbon", false | ||
125 | rev.country_ribbon = param.fetch "countryRibbon", false | ||
126 | rev.national_ribbon = param.fetch "nationalRibbon", false | ||
127 | rev.earth_ribbon = param.fetch "earthRibbon", false | ||
128 | rev.world_ribbon = param.fetch "worldRibbon", false | ||
129 | |||
112 | if pk.revisions.empty? or rev.diff?(pk.revisions.last) | 130 | if pk.revisions.empty? or rev.diff?(pk.revisions.last) |
113 | rev.save! | 131 | rev.save! |
114 | end | 132 | end |