Skip to content

Commit

Permalink
Merge pull request #16 from Devansh3712/pydantic-method-update
Browse files Browse the repository at this point in the history
src/routes: Update pydantic dict() to model_dump()
  • Loading branch information
VallariAg authored Sep 13, 2023
2 parents 6e6ca39 + 6625ced commit ce06731
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 ce06731

Please sign in to comment.