Skip to content

Commit

Permalink
src/routes: Update pydantic dict() to model_dump()
Browse files Browse the repository at this point in the history
Signed-off-by: Devansh3712 <[email protected]>
  • Loading branch information
Devansh3712 committed Sep 12, 2023
1 parent 6e6ca39 commit 6625ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ def create_run(
or else it will SyntaxError: non-dafault
argument follows default argument error.
"""
args = args.dict(by_alias=True)
args = args.model_dump(by_alias=True)
return run(args, logs, access_token, request)
2 changes: 1 addition & 1 deletion src/routes/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def create_run(
dry_run: bool = False,
logs: bool = False,
):
args = args.dict(by_alias=True)
args = args.model_dump(by_alias=True)
return run(args, dry_run, logs, access_token)

0 comments on commit 6625ced

Please sign in to comment.