summaryrefslogtreecommitdiff
path: root/routes/question.py
diff options
context:
space:
mode:
authorEila Väyrynen <evayryne@local>2023-12-03 13:28:36 +0200
committerEila Väyrynen <evayryne@local>2023-12-03 13:28:36 +0200
commit83eefd51d79dc2c0fa778303042c581b4691e82e (patch)
treebb957d130855e7ba798f90604468c3665a81528d /routes/question.py
parente0ca9caf5a49981ad999b1c0c3fec69d7c4871e4 (diff)
Rearrenge rest of db actions.
Diffstat (limited to 'routes/question.py')
-rw-r--r--routes/question.py4
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")