From 390a3ee7fb1301dda142b2d0d9c349bfc8577c01 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 7 Sep 2014 20:24:58 +0200 Subject: Rename 'fetch_result' to 'status'. --- web/lib/api/v4/projects.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/lib') diff --git a/web/lib/api/v4/projects.rb b/web/lib/api/v4/projects.rb index 1ab9ede..e920857 100644 --- a/web/lib/api/v4/projects.rb +++ b/web/lib/api/v4/projects.rb @@ -25,12 +25,12 @@ class Taginfo < Sinatra::Base q = like_contains(params[:query]) total = @db.count('projects.projects'). - condition("fetch_result=?", status). + condition("status=?", status). condition_if("name LIKE ? ESCAPE '@' OR description LIKE ? ESCAPE '@'", q, q). get_first_value().to_i res = @db.select('SELECT * FROM projects.projects'). - condition("fetch_result=?", status). + condition("status=?", status). condition_if("name LIKE ? ESCAPE '@' OR description LIKE ? ESCAPE '@'", q, q). order_by(@ap.sortname, @ap.sortorder) { |o| o.name 'lower(name)' -- cgit v1.2.3