Skip to content

Commit dd67713

Browse files
authored
fix python style for webhook url and totp url when creating a task (#1003)
1 parent c657957 commit dd67713

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

skyvern/forge/agent.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,13 @@ async def create_task_and_step_from_block(
184184
return task, step
185185

186186
async def create_task(self, task_request: TaskRequest, organization_id: str | None = None) -> Task:
187+
webhook_callback_url = str(task_request.webhook_callback_url) if task_request.webhook_callback_url else None
188+
totp_verification_url = str(task_request.totp_verification_url) if task_request.totp_verification_url else None
187189
task = await app.DATABASE.create_task(
188190
url=str(task_request.url),
189191
title=task_request.title,
190-
webhook_callback_url=str(task_request.webhook_callback_url) if task_request.webhook_callback_url else None,
191-
totp_verification_url=str(task_request.totp_verification_url) if task_request.totp_verification_url else None,
192+
webhook_callback_url=webhook_callback_url,
193+
totp_verification_url=totp_verification_url,
192194
totp_identifier=task_request.totp_identifier,
193195
navigation_goal=task_request.navigation_goal,
194196
data_extraction_goal=task_request.data_extraction_goal,

0 commit comments

Comments
 (0)