lib/npr/api/query_builder.rb in npr-1.2.0 vs lib/npr/api/query_builder.rb in npr-2.0.0
- old
+ new
@@ -31,13 +31,13 @@
else
conditions = @builder[:conditions]
end
params = conditions || {}
- params[:sort] = @builder[:order] if @builder[:order]
- params[:numResults] = @builder[:limit] if @builder[:limit]
- params[:startNum] = @builder[:offset] if @builder[:offset]
- params.merge!(@builder[:extra]) if @builder[:extra]
+ params[:sort] = @builder[:order] if @builder[:order]
+ params[:numResults] = @builder[:limit] if @builder[:limit]
+ params[:startNum] = @builder[:offset] + 1 if @builder[:offset]
+ params.merge!(@builder[:extra]) if @builder[:extra]
params
end
#-----------------------