We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c41d7 commit 5a21cdfCopy full SHA for 5a21cdf
1 file changed
src/kili/services/export/format/kili/__init__.py
@@ -66,7 +66,9 @@ def _clean_filepaths(self, assets: List[Dict]) -> List[Dict]:
66
asset["content"] = str(Path(self.ASSETS_DIR_NAME) / Path(asset["content"]).name)
67
68
json_content_list = []
69
- if isinstance(asset["jsonContent"], list):
+ if isinstance(asset["jsonContent"], list) and not any(
70
+ isinstance(path, dict) for path in asset["jsonContent"]
71
+ ):
72
json_content_list = [
73
str(Path(self.ASSETS_DIR_NAME) / Path(filepath).name)
74
for filepath in asset["jsonContent"]
0 commit comments