Skip to content

Commit

Permalink
Remove limit arg from get_cql (non-json)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Nov 8, 2024
1 parent be7861b commit 503f015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/folio_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def get_json(path)
puts JSON.pretty_generate(JSON.parse(authenticated_request(path)))
end

def get_cql(path, limit, query)
def get_cql(path, query)
path += "?query=#{CGI.escape(query)}"
parse(authenticated_request(path))
end

def get_cql_json(path, limit, query)
path += "?limit=#{limit}&query=#{CGI.escape(query)}"
puts JSON.pretty_generate(JSON.parse(authenticated_request(path)))
Expand Down

0 comments on commit 503f015

Please sign in to comment.