remove gacha_available from character parsers/importers

This commit is contained in:
Justin Edmund 2025-12-15 16:53:44 -08:00
parent c17dbfbcc7
commit 579736e981
3 changed files with 1 additions and 8 deletions

View file

@ -61,7 +61,6 @@ module Granblue
# @option attributes [Array<String>] :nicknames_jp Japanese nicknames
# @option attributes [Integer] :season Character season (gacha availability window)
# @option attributes [Array<Integer>] :series Character series (identity/pool membership)
# @option attributes [Boolean] :gacha_available Whether character can be pulled from gacha
#
# @raise [ImportError] If required attributes are missing or invalid
def build_attributes(row)
@ -102,8 +101,7 @@ module Granblue
nicknames_en: parse_array(row['nicknames_en']),
nicknames_jp: parse_array(row['nicknames_jp']),
season: parse_integer(row['season']),
series: parse_integer_array(row['series']),
gacha_available: parse_boolean(row['gacha_available'])
series: parse_integer_array(row['series'])
}
end
end

View file

@ -196,7 +196,6 @@ module Granblue
info[:series] = series_from_hash(hash)
info[:season] = season_from_hash(hash)
info[:gacha_available] = gacha_available_from_hash(hash)
info.compact
end
@ -213,7 +212,6 @@ module Granblue
@character.series = hash[:series] if hash[:series].present?
@character.season = hash[:season] if hash[:season].present?
@character.gacha_available = hash[:gacha_available] unless hash[:gacha_available].nil?
if @character.save
ap "#{@character.granblue_id}: Successfully saved info for #{@character.name_en}" if @debug

View file

@ -88,9 +88,6 @@ module Granblue
# Season (from series field)
suggestions[:season] = character_season_from_series(wiki_series, obtain)
# Gacha available (from obtain field)
suggestions[:gacha_available] = gacha_available_from_obtain(obtain, wiki_series)
# Promotions (from obtain and series fields)
promotions = character_promotions_from_obtain(obtain, wiki_series)
suggestions[:promotions] = promotions if promotions.any?