Skip to content
Snippets Groups Projects
Commit 4f8e6f29 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Make exam preview consistent with barcode example

parent 9d22857c
No related branches found
No related tags found
1 merge request!36Master
......@@ -10,7 +10,7 @@ from werkzeug.datastructures import FileStorage
from sqlalchemy.orm import selectinload
from ..pdf_generation import generate_pdfs, output_pdf_filename_format, join_pdfs, page_is_size
from ..database import db, Exam, ExamWidget, Submission
from ..database import db, Exam, ExamWidget, Submission, token_length
PAGE_FORMATS = {
"A4": (595.276, 841.89),
......@@ -478,8 +478,8 @@ class ExamPreview(Resource):
generate_pdfs(
exam_path,
exam.token[:5] + 'PREVIEW',
[1519],
"A" * token_length,
[159],
[output_file],
student_id_widget.x, student_id_widget.y,
barcode_widget.x, barcode_widget.y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment