diff --git a/lib/ya/api/direct/url_helper.rb b/lib/ya/api/direct/url_helper.rb index 0a2febe..1d070ef 100644 --- a/lib/ya/api/direct/url_helper.rb +++ b/lib/ya/api/direct/url_helper.rb @@ -89,7 +89,7 @@ def self.validate_response!(response_body) def self.from_tsv_to_json(response_body) report_name = response_body.slice!(/^(.+?)\n/) keys = response_body.slice!(/^(.+?)\n/).split("\t") - rows = response_body.match(/rows:(.+?)\n/)[1].to_i - 1 + rows = response_body.match(/rows:(.+?)\n/)[1].to_i values = [] rows.times do |row| hash_values = {} @@ -101,4 +101,4 @@ def self.from_tsv_to_json(response_body) values end end -end \ No newline at end of file +end