From f8a1bd8d69d2cbb11a5e214cee753c6b4502043e Mon Sep 17 00:00:00 2001 From: Jacob Mastel Date: Mon, 20 Nov 2023 12:04:44 -0800 Subject: [PATCH] Add official Atlassian Repo Mapping (#2661) The official Atlassian python library is named atlassian-python-api, which requires an installation under that name. It is imported as 'atlassian' though. --- backend/parsers/windmill-parser-py-imports/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/parsers/windmill-parser-py-imports/src/lib.rs b/backend/parsers/windmill-parser-py-imports/src/lib.rs index 51eb5c4074..f221595efe 100644 --- a/backend/parsers/windmill-parser-py-imports/src/lib.rs +++ b/backend/parsers/windmill-parser-py-imports/src/lib.rs @@ -45,7 +45,8 @@ static PYTHON_IMPORTS_REPLACEMENT: phf::Map<&'static str, &'static str> = phf_ma "shapefile" => "pyshp", "sklearn" => "scikit-learn", "umap" => "umap-learn", - "cv2" => "opencv-python" + "cv2" => "opencv-python", + "atlassian" => "atlassian-python-api" }; fn replace_import(x: String) -> String { @@ -167,7 +168,7 @@ pub async fn parse_python_imports( let code = sqlx::query_scalar!( r#" SELECT content FROM script WHERE path = $1 AND workspace_id = $2 - AND created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND + AND created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND workspace_id = $2) "#, &rpath,