Skip to content

Commit

Permalink
add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed Aug 7, 2024
1 parent 060acf0 commit 266502f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public ResponseEntity<String> getWritingTaskByNr(@RequestParam("tasknr") int tas
*
* @param label1 the first label (user text)
* @param file the InputStream containing the text to compare
* @param type the type of text (txt, pdf, docx)
* @param type the type of text (text, pdf, docx)
* @return id of the stored file
* @throws ParseException if there is an error parsing the input parameters
* @throws IOException if there is an error reading the input stream
Expand Down Expand Up @@ -463,7 +463,7 @@ public ResponseEntity<String> getAnalyzedText(@PathVariable("label1") String lab
* @param label1 the first label (user text)
* @param label2 the second label (expert or second user text)
* @param file the InputStream containing the text to compare
* @param type the type of text (txt, pdf or docx)
* @param type the type of text (text, pdf or docx)
* @param template the template to use for the PDF report
* @param wordSpec the word specification for the PDF report
* @return the id of the stored file
Expand Down Expand Up @@ -606,7 +606,7 @@ public ResponseEntity<String> getComparedText(@PathVariable("label1") String lab
* @param label1 the first label (user text)
* @param label2 the second label (expert or second user text)
* @param file the InputStream containing the text to compare
* @param type the type of text (txt, pdf or docx)
* @param type the type of text (text, pdf or docx)
* @param template the template to use for the PDF report
* @param wordSpec the word specification for the PDF report
* @return the id of the stored file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ public void cleanJSONFile(String path){
reader.close();

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

Expand Down

0 comments on commit 266502f

Please sign in to comment.