From 0ebc7324d2a7655b46b30f9bdee3a82b6880148a Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Thu, 23 Nov 2023 20:22:34 +0900 Subject: [PATCH] Fix: Fix ID search --- backend/app/controllers/sonolus/levels_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/controllers/sonolus/levels_controller.rb b/backend/app/controllers/sonolus/levels_controller.rb index 7893f91..b17497e 100644 --- a/backend/app/controllers/sonolus/levels_controller.rb +++ b/backend/app/controllers/sonolus/levels_controller.rb @@ -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