diff --git a/tools/anonymize_db.py b/tools/anonymize_db.py index 2c416038a..fee271807 100755 --- a/tools/anonymize_db.py +++ b/tools/anonymize_db.py @@ -127,7 +127,7 @@ def anonymize_column(cursor, tablecolumn): def rename_students(cursor): - """Remet des noms/prenoms fictifs aux étuduiants""" + """Remet des noms/prenoms fictifs aux étudiants""" # Change les noms/prenoms cursor.execute("""SELECT * FROM "identite";""") etuds = cursor.fetchall() @@ -140,7 +140,7 @@ def rename_students(cursor): """, { "id": etud["id"], - "nom": nom, + "nom": nom.upper() if nom else "", "prenom": prenom, }, )