diff options
author | Aira Kyytsönen <akyytson@local> | 2023-12-12 01:59:51 +0200 |
---|---|---|
committer | Aira Kyytsönen <akyytson@local> | 2023-12-12 01:59:51 +0200 |
commit | 84d1277c408038ab0df6179659c68ac7f08a098f (patch) | |
tree | 8a6f374e9810198a8559d8a236f8179c909c1fe7 /routes/tools.py | |
parent | 3dc9e71b7c733e7fe6fe9e226ad363f84a2e1dee (diff) |
Changing database variable D to db. Making error and infomessages dissapear.
Diffstat (limited to 'routes/tools.py')
-rw-r--r-- | routes/tools.py | 4 |
1 files changed, 2 insertions, 2 deletions
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(): |