From 84d1277c408038ab0df6179659c68ac7f08a098f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aira=20Kyyts=C3=B6nen?= Date: Tue, 12 Dec 2023 01:59:51 +0200 Subject: Changing database variable D to db. Making error and infomessages dissapear. --- routes/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/tools.py') diff --git a/routes/tools.py b/routes/tools.py index 65aff62..3a5e68e 100644 --- a/routes/tools.py +++ b/routes/tools.py @@ -1,6 +1,6 @@ from random import randint from flask import session, request -from app import D +from app import db def rows2dicts( rows, names ): dlist=[] @@ -20,7 +20,7 @@ def get_alert(): def get_nick(): while "id" in session.keys(): - nick = D.user.get_nick(session["id"]) + nick = db.user.get_nick(session["id"]) if not nick: del session['id'] if "quiz_id" in session.keys(): -- cgit v1.2.3