lib/gooddata/models/report.rb in gooddata-0.5.0 vs lib/gooddata/models/report.rb in gooddata-0.5.1
- old
+ new
@@ -15,10 +15,10 @@
# puts "Executing report #{uri}"
result = GoodData.post '/gdc/xtab2/executor3', {"report_req" => {"report" => uri}}
dataResultUri = result["reportResult2"]["content"]["dataResult"]
result = GoodData.get dataResultUri
- while result["taskState"] && result["taskState"]["state"] == "WAIT" do
+ while result["taskState"] && result["taskState"]["status"] == "WAIT" do
sleep 10
result = GoodData.get dataResultUri
end
data_result = ReportDataResult.new(GoodData.get dataResultUri)
data_result