1
0
forked from ScoDoc/ScoDoc

Anonymisation étudiants: noms en majuscules

This commit is contained in:
Emmanuel Viennet 2024-07-14 15:27:18 +02:00
parent 7c285c0894
commit 94a77abc92

View File

@ -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,
},
)