Skip to content

Commit

Permalink
tried fixing iss2002
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrnr committed Oct 25, 2023
1 parent 4d10c23 commit 9650eeb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions evap/results/exporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,13 @@ def filter_evaluations(semesters, evaluation_states, degrees, course_types, cont

return evaluations_with_results, used_questionnaires, course_results_exist

def write_headings_and_evaluation_info(
self, evaluations_with_results, semesters, contributor
):
def write_headings_and_evaluation_info(self, evaluations_with_results, semesters, contributor):
export_name = "Evaluation"
if contributor:
export_name += f"\n{contributor.full_name}"
elif len(semesters) == 1:
export_name += f"\n{semesters[0].name}"
self.write_cell(
_("{}\n").format(export_name), "headline"
)
self.write_cell(_("{}\n").format(export_name), "headline")

for evaluation, __ in evaluations_with_results:
title = evaluation.full_name
Expand Down Expand Up @@ -306,9 +302,7 @@ def export_impl(
include_not_enough_voters,
)

self.write_headings_and_evaluation_info(
evaluations_with_results, semesters, contributor
)
self.write_headings_and_evaluation_info(evaluations_with_results, semesters, contributor)

for questionnaire in used_questionnaires:
self.write_questionnaire(questionnaire, evaluations_with_results, contributor)
Expand Down

0 comments on commit 9650eeb

Please sign in to comment.