From 6625ced9b5b01b7887e3cacad6d5425244ab65cc Mon Sep 17 00:00:00 2001 From: Devansh3712 Date: Sat, 26 Aug 2023 23:11:22 +0530 Subject: [PATCH] src/routes: Update pydantic dict() to model_dump() Signed-off-by: Devansh3712 --- src/routes/kill.py | 2 +- src/routes/suite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/kill.py b/src/routes/kill.py index bc97c80..8f6412a 100644 --- a/src/routes/kill.py +++ b/src/routes/kill.py @@ -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) diff --git a/src/routes/suite.py b/src/routes/suite.py index 8b1bd36..e803879 100644 --- a/src/routes/suite.py +++ b/src/routes/suite.py @@ -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)