|
@@ -73,10 +73,10 @@ class orthancPeers:
|
|
|
jobStatus=self.checkJobStatus(jobId)
|
|
|
if jobStatus['State']=="Success":
|
|
|
print('Job succeeded')
|
|
|
- return
|
|
|
+ return True
|
|
|
if jobStatus['State']=="Failure":
|
|
|
print('Job failed')
|
|
|
- return
|
|
|
+ return False
|
|
|
|
|
|
try:
|
|
|
eta=datetime.datetime.strptime(jobStatus['EstimatedTimeOfArrival'],dateFormat)
|