From 8b6fb7a2ccb64c62d72bc81fffc79b4e71c6cdd5 Mon Sep 17 00:00:00 2001 From: msrocka Date: Mon, 20 Nov 2023 13:37:04 +0100 Subject: [PATCH] corrected mapping path --- fedelemflowlist/jsonld.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fedelemflowlist/jsonld.py b/fedelemflowlist/jsonld.py index 1ebd38ce..45103e65 100644 --- a/fedelemflowlist/jsonld.py +++ b/fedelemflowlist/jsonld.py @@ -224,4 +224,6 @@ def _write_mappings(self, zw: zipio.ZipWriter): # an ugly hack to write the flow maps directly to the zip-file # as there are currenty only methods for writing RootEntity # objects in the ZipWriter - zw._ZipWriter__zip.writestr("flow_mappings", json.dumps(flow_map)) + zw._ZipWriter__zip.writestr( + "flow_mappings/" + flow_map["@id"] + ".json", + json.dumps(flow_map))