From eabe7e1eb41c08a1fd5f9f1e04fbfce02722aa29 Mon Sep 17 00:00:00 2001 From: zjgemi Date: Wed, 20 Sep 2023 16:10:32 +0800 Subject: [PATCH] fix: convert project_id to int Signed-off-by: zjgemi --- src/dflow/plugins/bohrium.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dflow/plugins/bohrium.py b/src/dflow/plugins/bohrium.py index 7cd6a514..477d8e5f 100644 --- a/src/dflow/plugins/bohrium.py +++ b/src/dflow/plugins/bohrium.py @@ -93,8 +93,9 @@ def create_job_group(job_group_name): import requests data = { "name": job_group_name, - "projectId": config["project_id"], } + if config["project_id"] is not None: + data["projectId"] = int(config["project_id"]) headers = { "Content-type": "application/json", }