Allow input of expanded details and output them
This commit is contained in:
parent
09973142e2
commit
3226acdf4a
2 changed files with 12 additions and 4 deletions
|
|
@ -33,7 +33,8 @@ module Api
|
|||
end
|
||||
|
||||
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,
|
||||
blueprint: RaidBlueprint
|
||||
|
|
@ -63,7 +64,7 @@ module Api
|
|||
include_view :characters
|
||||
include_view :job_skills
|
||||
|
||||
fields :description, :extra
|
||||
fields :description, :charge_attack, :button_count, :turn_count, :chain_count
|
||||
end
|
||||
|
||||
view :collection do
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ module Api
|
|||
def build_conditions(params)
|
||||
unless params['recency'].blank?
|
||||
start_time = (DateTime.current - params['recency'].to_i.seconds)
|
||||
.to_datetime.beginning_of_day
|
||||
.to_datetime.beginning_of_day
|
||||
end
|
||||
|
||||
{}.tap do |hash|
|
||||
|
|
@ -142,7 +142,14 @@ module Api
|
|||
:skill0_id,
|
||||
:skill1_id,
|
||||
:skill2_id,
|
||||
:skill3_id
|
||||
:skill3_id,
|
||||
:full_auto,
|
||||
:auto_guard,
|
||||
:charge_attack,
|
||||
:clear_time,
|
||||
:button_count,
|
||||
:turn_count,
|
||||
:chain_count
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue