Skip to content

Commit

Permalink
Fix: Fix ID search
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Nov 23, 2023
1 parent e1108e2 commit 0ebc732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/controllers/sonolus/levels_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def list
end
if params[:q_id].present?
charts =
charts.where("LOWER(name) LIKE ?", "%#{params[:q_id].downcase}%")
charts.where("LOWER(charts.name) LIKE ?", "%#{params[:q_id].downcase}%")
end

page_count = (charts.count / 20.0).ceil
Expand Down

0 comments on commit 0ebc732

Please sign in to comment.