Fix: element -> row
This commit is contained in:
parent
52f2f3f4cf
commit
00c2681823
@ -34,12 +34,12 @@ def setup():
|
|||||||
print(f"The file {tribe['students']} does not exists")
|
print(f"The file {tribe['students']} does not exists")
|
||||||
|
|
||||||
|
|
||||||
def exam_dict2element(exam):
|
def exam_dict2row(exam):
|
||||||
""" Transform an exam in dictionnary for into list of element to evaluate"""
|
""" Transform an exam in dictionnary for into list of rows to evaluate"""
|
||||||
elements = []
|
rows = []
|
||||||
for ex in exam["exercices"]:
|
for ex in exam["exercices"]:
|
||||||
for q in ex["questions"]:
|
for q in ex["questions"]:
|
||||||
elements.append(
|
rows.append(
|
||||||
{
|
{
|
||||||
"term": exam["term"],
|
"term": exam["term"],
|
||||||
"assessment": exam["name"],
|
"assessment": exam["name"],
|
||||||
|
Loading…
Reference in New Issue
Block a user