Various cleaning

This commit is contained in:
Adrien Ufferte
2025-04-24 10:00:18 +02:00
parent d8635d4d78
commit a4e76bb9dd
6 changed files with 34 additions and 35 deletions
+5 -5
View File
@@ -38,12 +38,12 @@ func update_from_dict(dict: Dictionary) -> void:
var d_students: Dictionary = dict.students
for device: String in d_students.keys():
var device_students: Array[StudentData] = []
for s: Dictionary in dict.students[device]:
for student_dico: Dictionary in dict.students[device]:
var student: = StudentData.new()
student.code = str(s.code)
student.name = s.name
student.age = s.age
student.level = s.level
student.code = student_dico.code
student.name = student_dico.name
student.age = student_dico.age
student.level = student_dico.level
device_students.append(student)
students[int(device)] = device_students