diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-02-07 13:02:42 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-02-07 13:02:42 +0000 |
commit | 7c8253dcfc02e1793a543081c43103328fb8f5a3 (patch) | |
tree | a13200d6d11b73519f68fd0f7c847daac5de2d06 /parsers | |
parent | c3eed61080e0e37336a20eeaf3ca18ba2d360e51 (diff) | |
download | troggle-7c8253dcfc02e1793a543081c43103328fb8f5a3.tar.gz troggle-7c8253dcfc02e1793a543081c43103328fb8f5a3.tar.bz2 troggle-7c8253dcfc02e1793a543081c43103328fb8f5a3.zip |
synch laptop and PC
Diffstat (limited to 'parsers')
-rw-r--r-- | parsers/users.py | 4 |
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()}") |