Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Works on my machine
zesje
Commits
4f8e6f29
Commit
4f8e6f29
authored
5 years ago
by
Hugo Kerstens
Browse files
Options
Downloads
Patches
Plain Diff
Make exam preview consistent with barcode example
parent
9d22857c
No related branches found
Branches containing commit
No related tags found
1 merge request
!36
Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zesje/api/exams.py
+3
-3
3 additions, 3 deletions
zesje/api/exams.py
with
3 additions
and
3 deletions
zesje/api/exams.py
+
3
−
3
View file @
4f8e6f29
...
...
@@ -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
'
,
[
15
1
9
],
"
A
"
*
token_length
,
[
159
],
[
output_file
],
student_id_widget
.
x
,
student_id_widget
.
y
,
barcode_widget
.
x
,
barcode_widget
.
y
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment