Skip to content

Commit 1701e04

Browse files
authored
fix get_current_execution (#23)
* fix get_current_execution * fix return type
1 parent 6a062e1 commit 1701e04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tahoma_api/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ async def fetch_event_listener(self, listener_id: str) -> List[Event]:
118118

119119
return events
120120

121-
async def get_current_execution(self, exec_id: str) -> List[Execution]:
121+
async def get_current_execution(self, exec_id: str) -> Execution:
122122
""" Get an action group execution currently running """
123123
response = await self.__get(f"exec/current/{exec_id}")
124-
executions = [Execution(**e) for e in humps.decamelize(response)]
124+
execution = Execution(**humps.decamelize(response))
125125

126-
return executions
126+
return execution
127127

128128
async def get_current_executions(self) -> List[Execution]:
129129
""" Get all action groups executions currently running """

0 commit comments

Comments
 (0)