From 94a77abc92abd532825999186f8381a9585ee960 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 14 Jul 2024 15:27:18 +0200 Subject: [PATCH] =?UTF-8?q?Anonymisation=20=C3=A9tudiants:=20noms=20en=20m?= =?UTF-8?q?ajuscules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/anonymize_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/anonymize_db.py b/tools/anonymize_db.py index 2c416038..fee27180 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, }, )