VRFS-3681 add year and counter

This commit is contained in:
Jonathan Kolyer 2015-11-01 02:27:18 +00:00
parent 61e93b7d1d
commit c27ed06455
1 changed files with 2 additions and 2 deletions

View File

@ -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)