Skip to content
Snippets Groups Projects
Commit 3aeeda83 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

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!118Explore swagger
Pipeline #81000 passed
......@@ -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')
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment