diff options
Diffstat (limited to 'routes/question.py')
-rw-r--r-- | routes/question.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/question.py b/routes/question.py index 9ddb527..6965529 100644 --- a/routes/question.py +++ b/routes/question.py @@ -45,8 +45,8 @@ def new_question(): session["alert"] = "Vastauksessasi on nyt jotain häikkää." return redirect("/#question") - question_id = D.question_new( question, neg_ans, pos_ans ) + question_id = D.question.new( question, neg_ans, pos_ans ) D.quiz.add(qid, question_id) - D.answer_new(sid, question_id, answer) + D.answer.new(sid, question_id, answer) return redirect("/#create") |