Delete redundant lines

This commit is contained in:
Vivek Santayana 2023-03-05 00:32:15 +00:00
parent a56358b8dd
commit fcc4d55947

View File

@ -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():