From fcc4d559477fda5209387a4c2d68761a9d6982bb Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sun, 5 Mar 2023 00:32:15 +0000 Subject: [PATCH] Delete redundant lines --- ref-test/app/tools/data.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ref-test/app/tools/data.py b/ref-test/app/tools/data.py index af41acc..3085b21 100644 --- a/ref-test/app/tools/data.py +++ b/ref-test/app/tools/data.py @@ -117,7 +117,6 @@ def analyse(subject:Union[Dataset,Test]) -> dict: } } scores_raw = [] - dataset = subject if isinstance(subject, Dataset) else subject.dataset if isinstance(subject, Test): for entry in subject.entries: if entry.answers: @@ -131,7 +130,6 @@ def analyse(subject:Union[Dataset,Test]) -> dict: scores_raw.append(int(entry.result['score'])) else: for test in subject.tests: - output['entries'] += len(test.entries) for entry in test.entries: if entry.answers: for question, answer in entry.answers.items():