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
70c90407
Commit
70c90407
authored
5 years ago
by
Ruben Young On
Browse files
Options
Downloads
Patches
Plain Diff
Added function to add feedback to solution
parent
26f773a7
No related branches found
Branches containing commit
No related tags found
1 merge request
!17
Add pregrading
Pipeline
#17804
passed with warnings
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zesje/pregrader.py
+16
-6
16 additions, 6 deletions
zesje/pregrader.py
with
16 additions
and
6 deletions
zesje/pregrader.py
+
16
−
6
View file @
70c90407
from
zesje.images
import
guess_dpi
import
zesje.database
# 3 - resolution / dpi to convert points to inches to pixels
# 4 - get corner marker keypoints per page
# 5 - optional? determine blank pdf corner markers vs submission corner markers
...
...
@@ -14,10 +9,11 @@ import zesje.database
# coupled feedback cannot be deleted
from
zesje.database
import
Exam
from
zesje.database
import
db
,
Exam
,
FeedbackOption
from
zesje.images
import
guess_dpi
def
pregrade
(
exam_token
,
image
):
# get image
image
=
None
...
...
@@ -32,5 +28,19 @@ def pregrade(exam_token, image):
pass
def
add_feedback_to_solution
(
solution
):
problem
=
solution
.
problem
for
mc_option
in
problem
.
mc_options
:
box
=
(
mc_option
.
x
,
mc_option
.
y
)
# check width and so forth
# if box is filled
if
True
:
solution
.
feedback
=
mc_option
.
feedback
db
.
session
.
commit
()
def
_locate_checkbox
():
pass
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