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
Commits
3aeeda83
Commit
3aeeda83
authored
6 years ago
by
robinwilliam.hundt
Browse files
Options
Downloads
Patches
Plain Diff
added .asm file ending in import / small bug fix in sub-notes store
parent
47d6c72d
No related branches found
No related tags found
1 merge request
!118
Explore swagger
Pipeline
#81000
passed
6 years ago
Stage: build
Stage: test
Stage: build_image
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/store/modules/submission-notes.ts
+3
-3
3 additions, 3 deletions
frontend/src/store/modules/submission-notes.ts
util/importer.py
+2
-1
2 additions, 1 deletion
util/importer.py
with
5 additions
and
4 deletions
frontend/src/store/modules/submission-notes.ts
+
3
−
3
View file @
3aeeda83
...
...
@@ -51,7 +51,7 @@ function initialState (): SubmissionNotesState {
hasOrigFeedback
:
false
,
origFeedback
:
{
pk
:
0
,
score
:
0
,
score
:
undefined
,
isFinal
:
false
,
feedbackLines
:
{}
},
...
...
@@ -158,9 +158,9 @@ const submissionNotes: Module<SubmissionNotesState, RootState> = {
if
(
Object
.
keys
(
state
.
updatedFeedback
.
feedbackLines
||
{}).
length
>
0
)
{
feedback
.
feedbackLines
=
state
.
updatedFeedback
.
feedbackLines
}
if
(
state
.
origFeedback
.
score
===
null
&&
state
.
updatedFeedback
.
score
===
null
)
{
if
(
state
.
origFeedback
.
score
===
undefined
&&
state
.
updatedFeedback
.
score
===
undefined
)
{
throw
new
Error
(
'
You need to give a score.
'
)
}
else
if
(
state
.
updatedFeedback
.
score
!==
null
)
{
}
else
if
(
state
.
updatedFeedback
.
score
!==
undefined
)
{
feedback
.
score
=
state
.
updatedFeedback
.
score
}
await
dispatch
(
'
deleteComments
'
)
...
...
This diff is collapsed.
Click to expand it.
util/importer.py
+
2
−
1
View file @
3aeeda83
...
...
@@ -166,7 +166,8 @@ def call_loader(func: Callable) -> None:
def
file_suffix_to_lang_name
(
suffix
:
str
)
->
str
:
suffix2name
=
{
'
hs
'
:
'
haskell
'
,
'
s
'
:
'
mipsasm
'
'
s
'
:
'
mipsasm
'
,
'
asm
'
:
'
mipsasm
'
}
if
suffix
not
in
suffix2name
:
return
suffix
...
...
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