Skip to content

Commit

Permalink
added pages to parsing script.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Jan 20, 2025
1 parent 8bb8a1c commit ad5083c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interfaces/ai_tutor/fetch_and_parse_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ def parse_question(question_num: int):
questions[question_num] = {
"text": question_parsed,
"text-only": text_only,
"correctly_parsed": True
"pages": pages,
"correctly_parsed": True,
}
parsed = json.dumps(dict(sorted(questions.items())), indent=4)
json_file_lock.acquire()
Expand Down Expand Up @@ -548,6 +549,7 @@ def parse_question(question_num: int):
questions[question_num] = {
"text": qna,
"num-marks": num_marks,
"pages": pages,
"correctly_parsed": True
}
parsed = json.dumps(dict(sorted(questions.items())), indent=4)
Expand Down

0 comments on commit ad5083c

Please sign in to comment.