Commit b30ef15a authored by Ruben Young On's avatar Ruben Young On

Feedback is passed in constructor of MultipleChoiceOption in API

parent 763c70bb
Pipeline #18639 passed with stages
in 3 minutes and 44 seconds
......@@ -72,8 +72,7 @@ class MultipleChoice(Resource):
args.pop('problem_id')
# Insert new multiple choice entry into the database
mc_entry = MultipleChoiceOption(**args)
mc_entry.feedback_id = new_feedback_option.id
mc_entry = MultipleChoiceOption(**args, feedback_id=new_feedback_option.id)
db.session.add(mc_entry)
db.session.commit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment