Skip to content

Commit

Permalink
delete md file after converting to pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Apr 11, 2024
1 parent 1c53ad4 commit 7a440aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ public void run() {
newText.put("taskNr", courseAndTask[1]);
newText.put("timestamp", System.currentTimeMillis());
newText.put("keywords", "[Python, AWS]");
System.out.println(newText);

storeFileLocally(label1, body.getText(), body.getType());
System.out.println("Upload text");
Expand Down Expand Up @@ -493,6 +492,7 @@ public void run() {
pb.directory(new File("tmitocar"));
Process process2 = pb.start();
process2.waitFor();
Files.delete(Paths.get("tmitocar/comparison_" + label1 + "_vs_" + label2 + ".md"));

System.out.println("Storing PDF to mongodb...");
feedbackFileId = storeLocalFileRemote("comparison_" + label1 + "_vs_" + label2 + ".pdf" ,body.getTopic()+"-feedback.pdf");
Expand Down

0 comments on commit 7a440aa

Please sign in to comment.