diff options
author | Eila Väyrynen <evayryne@local> | 2023-12-03 13:28:36 +0200 |
---|---|---|
committer | Eila Väyrynen <evayryne@local> | 2023-12-03 13:28:36 +0200 |
commit | 83eefd51d79dc2c0fa778303042c581b4691e82e (patch) | |
tree | bb957d130855e7ba798f90604468c3665a81528d /routes/create.py | |
parent | e0ca9caf5a49981ad999b1c0c3fec69d7c4871e4 (diff) |
Rearrenge rest of db actions.
Diffstat (limited to 'routes/create.py')
-rw-r--r-- | routes/create.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/create.py b/routes/create.py index 7322079..d2701a2 100644 --- a/routes/create.py +++ b/routes/create.py @@ -33,7 +33,7 @@ def create(): nick=get_nick(), quiz_set=True, questions=rows2dicts( - D.get_questions(session["quiz_id"]), + D.quiz.questions(session["quiz_id"]), ['i','q','n','p','a'] ) ) @@ -57,7 +57,7 @@ def quiz_ready(): if "quiz_id" not in session.keys(): session["alert"] = "Kyselmä jota ei ole aloitettu ei voi olla valmis." return redirect("/#create") - if not D.is_user_answered(session["quiz_id"], session["id"]): + if not D.quiz.user(session["quiz_id"], session["id"]): session["alert"] = "Tyhjän kyselmän luominen ei käy päinsä!" return redirect("/#create") quiz_id = session["quiz_id"] |