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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
grady
Merge requests
!192
Resolve "Provide import functionality via frontend for reviewers"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Provide import functionality via frontend for reviewers"
189-provide-import-functionality-via-frontend-for-reviewers
into
master
Overview
0
Commits
4
Pipelines
19
Changes
1
Merged
Dominik Seeger
requested to merge
189-provide-import-functionality-via-frontend-for-reviewers
into
master
5 years ago
Overview
0
Commits
4
Pipelines
19
Changes
1
Expand
Closes
#189 (closed)
Edited
5 years ago
by
robinwilliam.hundt
0
0
Merge request reports
Viewing commit
c1f9a66a
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c1f9a66a
Bumped Min. req. Hektor version of import to 4.0.0
· c1f9a66a
robinwilliam.hundt
authored
5 years ago
util/importer.py
+
3
−
3
Options
@@ -29,8 +29,8 @@ PASSWORDS = '.importer_passwords'
YES
=
'
Y/n
'
NO
=
'
y/N
'
RUSTY_HEKTOR_MIN_VER
=
"
>=
3
.0.0
"
RUSTY_HEKTOR_MAX_VER
=
"
<
4
.0.0
"
RUSTY_HEKTOR_MIN_VER
=
"
>=
4
.0.0
"
RUSTY_HEKTOR_MAX_VER
=
"
<
5
.0.0
"
valid
=
{
"
yes
"
:
True
,
"
y
"
:
True
,
"
ye
"
:
True
,
"
no
"
:
False
,
"
n
"
:
False
}
@@ -158,7 +158,7 @@ def load_reviewers():
store_pw
=
True
)
def
add_submission
(
student_obj
,
code
,
tests
,
type
=
None
):
def
add_submission
(
student_obj
,
code
,
tests
,
type
=
None
,
display_code
=
None
):
submission_type_obj
=
SubmissionType
.
objects
.
get
(
name
=
type
)
submission_obj
,
_
=
Submission
.
objects
.
update_or_create
(
Loading