Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion float/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Float",
"version": "2.0.0",
"version": "2.0.1",
"description": "Comprehensive Float API integration for resource management, project scheduling, time tracking, and team management. Supports people, projects, tasks/allocations, time off, logged time, clients, departments, and roles.",
"entry_point": "float.py",
"supports_billing": false,
Expand Down
8 changes: 5 additions & 3 deletions float/float.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext) -> Ac
ActionResult containing created time off details
"""
request_body = {
"people_id": inputs["people_id"],
"people_ids": [inputs["people_id"]],
"timeoff_type_id": inputs["timeoff_type_id"],
"start_date": inputs["start_date"],
"end_date": inputs["end_date"],
Expand Down Expand Up @@ -1522,7 +1522,8 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext) -> Ac
json=request_body,
)

return ActionResult(data=response.data, cost_usd=0.0)
data = response.data[0] if isinstance(response.data, list) else response.data
return ActionResult(data=data, cost_usd=0.0)

except Exception as e:
return ActionError(message=f"Failed to create logged time: {str(e)}")
Expand Down Expand Up @@ -1586,7 +1587,8 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext) -> Ac
json=request_body,
)

return ActionResult(data=response.data, cost_usd=0.0)
data = response.data[0] if isinstance(response.data, list) else response.data
return ActionResult(data=data, cost_usd=0.0)

except Exception as e:
return ActionError(message=f"Failed to update logged time {logged_time_id}: {str(e)}")
Expand Down
Loading
Loading