Improve stats-UI fix (#5243)

* Improve stats-UI fix

* remove unused stats_json
This commit is contained in:
Richard Schreiber
2025-06-18 09:11:16 +02:00
committed by GitHub
parent dec07b2df1
commit 7bb2e4c170
3 changed files with 5 additions and 6 deletions

View File

@@ -748,7 +748,6 @@ class QuestionView(EventPermissionRequiredMixin, QuestionMixin, ChartContainingV
ctx['items'] = self.object.items.all()
stats = self.get_answer_statistics()
ctx['stats'], ctx['total'] = stats
ctx['stats_json'] = json.dumps(stats)
return ctx
def get_object(self, queryset=None) -> Question: