From be1dcfb0c2447f040c219d1b03ae869631e90678 Mon Sep 17 00:00:00 2001 From: Adt-HamzahJamal <61146950+Adt-HamzahJamal@users.noreply.github.com> Date: Wed, 7 Jul 2021 12:07:24 +0530 Subject: [PATCH] Update async.py --- examples/async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/async.py b/examples/async.py index 203e7129f..db129de2e 100644 --- a/examples/async.py +++ b/examples/async.py @@ -50,7 +50,7 @@ job = i_async_job.api_get() print("Percent done: " + str(job[AdReportRun.Field.async_percent_completion])) time.sleep(1) - if job: + if str(job[AdReportRun.Field.async_status]) == 'Job Completed'): print("Done!") break