From 83eefd51d79dc2c0fa778303042c581b4691e82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eila=20V=C3=A4yrynen?= Date: Sun, 3 Dec 2023 13:28:36 +0200 Subject: Rearrenge rest of db actions. --- routes/question.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/question.py') 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") -- cgit v1.2.3