summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'parsers')
-rw-r--r--parsers/users.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/parsers/users.py b/parsers/users.py
index 30b491b..fd971fb 100644
--- a/parsers/users.py
+++ b/parsers/users.py
@@ -39,10 +39,9 @@ def register_user(u, email, password=None, pwhash=None, fullname=""):
Do not use the lastname field, put the whole free text identification into firstname
as this saves hassle and works with Wookey too
"""
- print(f" - {u} {fullname=}")
try:
if existing_user := User.objects.filter(username=u): # WALRUS
- print(f" - deleting existing user '{existing_user[0]}' before importing")
+ # print(f" - deleting existing user '{existing_user[0]}' before importing")
existing_user[0].delete()
user = User.objects.create_user(u, email, first_name=fullname)
if pwhash:
@@ -62,7 +61,6 @@ def register_user(u, email, password=None, pwhash=None, fullname=""):
user.is_staff = False
user.is_superuser = False
user.save()
- print(f" - receated and reset user '{user}'")
except Exception as e:
print(f"Exception <{e}>")
print(f"{len(User.objects.all())} users now in db:\n{User.objects.all()}")