mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-21 15:38:11 -07:00
Added request concluded status to Link API
This commit is contained in:
+11
@@ -1288,6 +1288,17 @@ class RequestReceipt():
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def concluded(self):
|
||||||
|
"""
|
||||||
|
:returns: True if the associated request has concluded (successfully or with a failure), otherwise False.
|
||||||
|
"""
|
||||||
|
if self.status == RequestReceipt.READY:
|
||||||
|
return True
|
||||||
|
elif self.status == RequestReceipt.FAILED:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class RequestReceiptCallbacks:
|
class RequestReceiptCallbacks:
|
||||||
|
|||||||
Reference in New Issue
Block a user