forked from ScoDoc/ScoDoc
Anonymisation étudiants: noms en majuscules
This commit is contained in:
parent
7c285c0894
commit
94a77abc92
@ -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,
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user