Skip to content

Commit

Permalink
fix too many local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fekoch committed Dec 2, 2024
1 parent e4be490 commit 2cb0daf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions evap/student/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ def vote(request: HttpRequest, evaluation_id: int, dropout=False): # noqa: PLR0
if question.is_heading_question:
continue

identifier = answer_field_id(contribution, questionnaire, question)
value = questionnaire_form.cleaned_data.get(identifier)
value = questionnaire_form.cleaned_data.get(answer_field_id(contribution, questionnaire, question))

if question.is_text_question:
if value:
Expand Down

0 comments on commit 2cb0daf

Please sign in to comment.