Skip to content
Snippets Groups Projects

Resolve "Comment apis"

Merged Josef Olsson requested to merge 166-comment-apis into dev
2 files
+ 5
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -28,7 +28,7 @@ answer_parser_edit.add_argument("score", type=int, default=sentinel, location="j
class QuestionAnswerList(Resource):
@protect_route(allowed_roles=["*"], allowed_views=["*"])
def get(self, competition_id, team_id):
""" Gets the all question answers that the specified team has given. """
""" Gets all question answers that the specified team has given. """
items = dbc.get.question_answer_list(competition_id, team_id)
return list_response(list_schema.dump(items))
@@ -54,7 +54,7 @@ class QuestionAnswers(Resource):
@protect_route(allowed_roles=["*"], allowed_views=["*"])
def put(self, competition_id, team_id, answer_id):
""" Edits the specified question answer. """
""" Edits the specified question answer with the provided arguments. """
args = answer_parser_edit.parse_args(strict=True)
item = dbc.get.question_answer(competition_id, team_id, answer_id)
Loading