added the json extention to filename

This commit is contained in:
Miriam Baglioni 2020-07-07 18:29:49 +02:00
parent 81434f8e5e
commit 35c8265793
1 changed files with 1 additions and 1 deletions

View File

@ -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);