VRFS-3681 add year and counter
This commit is contained in:
parent
61e93b7d1d
commit
c27ed06455
|
|
@ -115,7 +115,7 @@ module JamRuby
|
|||
'artist' => jt.original_artist,
|
||||
'genre' => jt.genres.map(&:description).join(', '),
|
||||
'plan_code' => jt.plan_code,
|
||||
'year' => ''
|
||||
'year' => jt.year
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -134,7 +134,7 @@ module JamRuby
|
|||
|
||||
unless (val = query[KEY_SEARCH_STR]).blank?
|
||||
rel = rel.where("original_artist LIKE ?","%#{val}%")
|
||||
counter = counter.and(rel)
|
||||
counter = counter.where("original_artist LIKE ?","%#{val}%")
|
||||
end
|
||||
rel = rel.order(:original_artist)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue