Allow input of expanded details and output them

This commit is contained in:
Justin Edmund 2023-01-03 08:05:47 -08:00
parent 09973142e2
commit 3226acdf4a
2 changed files with 12 additions and 4 deletions

View file

@ -33,7 +33,8 @@ module Api
end end
view :minimal do view :minimal do
fields :name, :element, :shortcode, :favorited, :extra, :created_at, :updated_at fields :name, :element, :shortcode, :favorited, :extra,
:full_auto, :clear_time, :auto_guard, :created_at, :updated_at
association :raid, association :raid,
blueprint: RaidBlueprint blueprint: RaidBlueprint
@ -63,7 +64,7 @@ module Api
include_view :characters include_view :characters
include_view :job_skills include_view :job_skills
fields :description, :extra fields :description, :charge_attack, :button_count, :turn_count, :chain_count
end end
view :collection do view :collection do

View file

@ -105,7 +105,7 @@ module Api
def build_conditions(params) def build_conditions(params)
unless params['recency'].blank? unless params['recency'].blank?
start_time = (DateTime.current - params['recency'].to_i.seconds) start_time = (DateTime.current - params['recency'].to_i.seconds)
.to_datetime.beginning_of_day .to_datetime.beginning_of_day
end end
{}.tap do |hash| {}.tap do |hash|
@ -142,7 +142,14 @@ module Api
:skill0_id, :skill0_id,
:skill1_id, :skill1_id,
:skill2_id, :skill2_id,
:skill3_id :skill3_id,
:full_auto,
:auto_guard,
:charge_attack,
:clear_time,
:button_count,
:turn_count,
:chain_count
) )
end end
end end