@@ -82,7 +82,7 @@ def view_transactions(self) -> list:
82
82
resp = self ._make_request ("GET" , HOST .TRANSACTIONS )
83
83
return resp
84
84
85
- def get_result (self , job_id : str , wait_time : int = 10 , max_wait_time : int = 300 , ** kwargs ) -> dict :
85
+ def get_result (self , job_id : str , wait_time : int = 10 , max_wait_time : int = 300 ) -> dict :
86
86
"""
87
87
Retrieve the tabular data of a triggered job based on the JobId
88
88
:param job_id: JobId received from an already triggered process
@@ -91,14 +91,13 @@ def get_result(self, job_id: str, wait_time: int = 10, max_wait_time: int = 300,
91
91
:return: Tabular JSON when processed successful else helpful user info
92
92
"""
93
93
params = {'JobId' : job_id }
94
- form_data = dict (kwargs )
95
- resp = self ._make_request ('get' , HOST .RESULT , params = params , data = form_data )
94
+ resp = self ._make_request ('get' , HOST .RESULT , params = params )
96
95
# Loop to retrieve the output until max_wait_time is reached
97
96
max_wait_time = int (max_wait_time )
98
97
while self ._WAIT_UNTIL_OUTPUT and resp ["JobStatus" ] == JobStatus .PROCESSING and max_wait_time > 0 :
99
98
time .sleep (max (10 , int (wait_time )))
100
99
max_wait_time -= wait_time
101
- resp = self ._make_request ('get' , HOST .RESULT , params = params , data = form_data )
100
+ resp = self ._make_request ('get' , HOST .RESULT , params = params )
102
101
103
102
return resp
104
103
0 commit comments