diff options
author | Jochen Topf <jochen@topf.org> | 2014-09-07 20:24:58 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-09-07 20:24:58 +0200 |
commit | 390a3ee7fb1301dda142b2d0d9c349bfc8577c01 (patch) | |
tree | 2f666968644bfc63f252d25304b0d6e59339dada /web/lib | |
parent | 866f4c505b978d18fce4b25c2c9c4cfd57747979 (diff) | |
download | taginfo-390a3ee7fb1301dda142b2d0d9c349bfc8577c01.tar taginfo-390a3ee7fb1301dda142b2d0d9c349bfc8577c01.tar.gz |
Rename 'fetch_result' to 'status'.
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api/v4/projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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)' |