ソースを参照

Adding return value signaling transfer success to sendResource

Andrej Studen @ VBOX 2 ヶ月 前
コミット
86473dd0ba
1 ファイル変更2 行追加2 行削除
  1. 2 2
      orthancPeers.py

+ 2 - 2
orthancPeers.py

@@ -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)