From 00c2681823b07dea53ebd2b1a16b56a33e5262f0 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 5 Jan 2021 09:14:37 +0100 Subject: [PATCH] Fix: element -> row --- recopytex/scripts/recopytex.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recopytex/scripts/recopytex.py b/recopytex/scripts/recopytex.py index 6404898..4ef5ff9 100644 --- a/recopytex/scripts/recopytex.py +++ b/recopytex/scripts/recopytex.py @@ -34,12 +34,12 @@ def setup(): print(f"The file {tribe['students']} does not exists") -def exam_dict2element(exam): - """ Transform an exam in dictionnary for into list of element to evaluate""" - elements = [] +def exam_dict2row(exam): + """ Transform an exam in dictionnary for into list of rows to evaluate""" + rows = [] for ex in exam["exercices"]: for q in ex["questions"]: - elements.append( + rows.append( { "term": exam["term"], "assessment": exam["name"],