Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
grady
Commits
f8004073
Commit
f8004073
authored
Mar 7, 2019
by
robinwilliam.hundt
Committed by
Dominik Seeger
Mar 8, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Changed importer such that exam is mandatory
parent
e38d3043
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!154
Resolve "Received 500 on export Student Scores"
Pipeline
#91902
passed
Mar 8, 2019
Stage: build
Stage: test
Stage: build_image
Changes
1
Pipelines
5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/importer.py
+6
-6
6 additions, 6 deletions
util/importer.py
with
6 additions
and
6 deletions
util/importer.py
+
6
−
6
View file @
f8004073
...
...
@@ -253,10 +253,9 @@ def do_load_submission_types():
def
do_load_module_descriptions
():
print
(
'''
This loader imports descriptions of modules in an exam. This step is purely
optional -- Grady works just fine without these information. If you want to
distinguish students within one instance or give information about the
grading type you should provide this info.
This loader imports descriptions of modules in an exam. This information
is used to distinguish students within one instance or give information
about the grading type.
CSV file format: module_reference, total_score, pass_score, pass_only
...
...
@@ -377,8 +376,9 @@ def do_load_submissions():
file
=
i
(
'
Get me the file with all the submissions
'
,
'
submissions.json
'
,
is_file
=
True
)
exam_obj
=
{}
if
ExamType
.
objects
.
all
():
if
not
ExamType
.
objects
.
all
():
raise
Exception
(
'
Modules need to be loaded before submissions.
'
)
else
:
exam_query_set
=
ExamType
.
objects
.
all
()
print
(
'
Please select the corresponding module
'
)
print
(
'
You have the following choices:
\n
'
)
...
...
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
sign in
to comment