summaryrefslogtreecommitdiff
path: root/routes/base.py
diff options
context:
space:
mode:
authorUnto Markkanen <umarkkan@local>2023-12-03 12:13:04 +0200
committerUnto Markkanen <umarkkan@local>2023-12-03 12:13:04 +0200
commite15e4b93c203ba94f413e97955c48d8761a70423 (patch)
treea1400d2de979052cafa3d55697232b375ce32459 /routes/base.py
parent14365bb113400e576157be9da384c7bf0d80255c (diff)
Moving user related database commands to separate class and file.
Diffstat (limited to 'routes/base.py')
-rw-r--r--routes/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/base.py b/routes/base.py
index d5eae8f..a9c0e19 100644
--- a/routes/base.py
+++ b/routes/base.py
@@ -42,10 +42,10 @@ def new_nick():
if not nick.isalnum():
session["alert"]="Nimimerkissä saa olla vain kirjaimia ja numeroita."
return redirect(next)
- if D.user_exists(nick):
+ if D.user.exists(nick):
session["alert"]="Nimimerkki jonka olet ottamassa on jo varattu."
return redirect(next)
- session["id"] = int(D.user_new(nick))
+ session["id"] = int(D.user.new(nick))
return redirect(next)