From 1f6711875f226c4bba98e6a8ebcd92875fa4cad8 Mon Sep 17 00:00:00 2001 From: dreamlandliu <205407@qq.com> Date: Fri, 9 Dec 2022 18:01:40 +0800 Subject: [PATCH] fix(client): add default value to is_default field which is not required in controller api (#1597) add default value to is_default field which is not required in controller api --- client/starwhale/core/project/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/starwhale/core/project/model.py b/client/starwhale/core/project/model.py index 3600cfe71d..def107d560 100644 --- a/client/starwhale/core/project/model.py +++ b/client/starwhale/core/project/model.py @@ -203,7 +203,7 @@ def list( id=_p["id"], name=_p["name"], created_at=crm.fmt_timestamp(_p["createdTime"]), # type: ignore - is_default=_p["isDefault"], + is_default=_p.get("isDefault", 0), owner=owner, ) )