Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
黃宣傑
Autolab
Commits
11449287
Commit
11449287
authored
7 years ago
by
devanshk
Browse files
Options
Download
Patches
Plain Diff
removes a check that stops annotations with the same submission and problem number from being added
parent
0acbffcb
tjjohans_develop
hotfix_annotations
hotfix_multiple_annotations
tjjohans_annotations
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/annotations_controller.rb
+0
-7
app/controllers/annotations_controller.rb
with
0 additions
and
7 deletions
app/controllers/annotations_controller.rb
+
0
−
7
View file @
11449287
...
...
@@ -26,13 +26,6 @@ class AnnotationsController < ApplicationController
end
end
findanno
=
Annotation
.
where
(
'submission_id = ? AND problem_id = ?'
,
params
[
:submission_id
]
,
annotation_params
[
:problem_id
])
if
!
findanno
.
blank?
render
:status
=>
422
,
:text
=>
"bad data"
return
end
annotation
=
@submission
.
annotations
.
new
(
annotation_params
)
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets