Skip to content
Snippets Groups Projects
Commit b5bdf05f authored by Tomasz Walkowiak's avatar Tomasz Walkowiak
Browse files

Fixing bug in JSON2XLSX

parent 8fec8fde
No related branches found
No related tags found
No related merge requests found
Pipeline #562 passed
......@@ -43,7 +43,6 @@ public class Converter extends Worker {
new TopicModel().process(fileIn, fileOut, options);
} else if (type.equals("ccl2liwc")) {
new Ccl2LIWC().process(fileIn, fileOut, options);
} else if (type.equals("ccl2xlsx")) {
new CCLCzasownik().process(fileIn, fileOut, options);
} else if (type.equals("ccl2verbs")) {
......@@ -71,22 +70,14 @@ public class Converter extends Worker {
new Ccl2Doc2Vec(connection, "lex_").process(fileIn, fileOut, options);
} else if (type.equals("ccl2stat")) {
new Ccl2Stats().process(fileIn, fileOut, options);
}
else if (type.equals("fog")) {
} else if (type.equals("fog")) {
new Smog2MSXLSX().process(fileIn, fileOut, options);
}
else if (type.equals("json2xlsx")){
} else if (type.equals("json2xlsx")) {
new JSON2XLSX().process(fileIn, fileOut, options);
}
else {
} else {
new Ccl2Loc().process(fileIn, fileOut, options);
}
}
@Override
......
......@@ -33,7 +33,7 @@ public class JSON2XLSX {
{ keys.put(key, new Integer(key_id++));
}
double value = json.getDouble(key);
row.createCell(column + key_id).setCellValue(value);
row.createCell(column + keys.get(key)).setCellValue(value);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment