diff --git a/plugins/contents/fps_contents/routes.py b/plugins/contents/fps_contents/routes.py index 4663885a..c216353c 100644 --- a/plugins/contents/fps_contents/routes.py +++ b/plugins/contents/fps_contents/routes.py @@ -186,6 +186,10 @@ async def read_content( if "metadata" not in cell: cell["metadata"] = {} cell["metadata"].update({"trusted": False}) + if cell["cell_type"] == "code": + cell_source = cell["source"] + if not isinstance(cell_source, str): + cell["source"] = "".join(cell_source) if file_format != "json": content = json.dumps(nb) elif path.suffix == ".json":