Skip to content

Commit

Permalink
change template path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed Aug 7, 2024
1 parent 5aea7c9 commit 07de3e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public ResponseEntity<String> compareText(@RequestParam("label1") String label1,
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(err.toJSONString());
}

File templatePath = new File("./tmitocar/templates/" + template);
File templatePath = new File("tmitocar/templates/" + template);
if (!templatePath.exists()){
JSONObject err = new JSONObject();
err.put("errorMessage", "Template: " + template + " not found.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ public void cleanJSONFile(String path){
reader.close();

// Parse the JSON
System.out.println("JSON String: "+ jsonString.toString());
System.out.println("JSON String: "+ jsonString);
JSONParser parser = new JSONParser(JSONParser.MODE_PERMISSIVE);
JSONObject json = (JSONObject) parser.parse(jsonString.toString());

Expand Down

0 comments on commit 07de3e0

Please sign in to comment.