From 35c8265793330e0775a4b4e3675e253dc2285887 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Tue, 7 Jul 2020 18:29:49 +0200 Subject: [PATCH] added the json extention to filename --- .../main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java index a4ffca2ef..8087d425d 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/SendToZenodo.java @@ -65,7 +65,7 @@ public class SendToZenodo implements Serializable { String tmp = p_string.substring(0, p_string.lastIndexOf("/")); String community = tmp.substring(tmp.lastIndexOf("/") + 1); log.info("Sending information for community: " + community); - String community_name = communityMap.get(community).replace(" ", "_") + ".zip"; + String community_name = communityMap.get(community).replace(" ", "_") + ".json.gz"; log.info("Copying information for community: " + community); fileSystem.copyToLocalFile(p, new Path("/tmp/" + community_name)); File f = new File("/tmp/" + community_name);