mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 06:08:13 +02:00
made the route for comment generation comment
instead of comments
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
<legend><strong>Upload Your Answers</strong></legend>
|
||||
<label for="answer-cype">Type:</label>
|
||||
<select id="answer-cype">
|
||||
<option value="comments">Comment Generation</option>
|
||||
<option value="comment">Comment Generation</option>
|
||||
<option value="refinement">Code Refinement</option>
|
||||
</select>
|
||||
<br /><br />
|
||||
|
@ -44,7 +44,7 @@ def validate_json_format_for_code_refinement(data: str) -> dict[str, dict[str, s
|
||||
raise InvalidJsonFormatError()
|
||||
|
||||
|
||||
@router.route('/submit/comments', methods=['POST'])
|
||||
@router.route('/submit/comment', methods=['POST'])
|
||||
def submit_comments():
|
||||
file = request.files.get('file')
|
||||
if file is None or file.filename is None or file.filename.split('.')[-1] not in ALLOWED_EXT:
|
||||
|
Reference in New Issue
Block a user