mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix colors in graph of boolean questions
This commit is contained in:
@@ -556,8 +556,8 @@ class QuestionView(EventPermissionRequiredMixin, QuestionMixin, ChartContainingV
|
|||||||
if self.object.type == Question.TYPE_BOOLEAN:
|
if self.object.type == Question.TYPE_BOOLEAN:
|
||||||
for a in qs:
|
for a in qs:
|
||||||
a['alink'] = a['answer']
|
a['alink'] = a['answer']
|
||||||
a['answer'] = gettext('Yes') if a['answer'] == 'True' else gettext('No')
|
|
||||||
a['answer_bool'] = a['answer'] == 'True'
|
a['answer_bool'] = a['answer'] == 'True'
|
||||||
|
a['answer'] = gettext('Yes') if a['answer'] == 'True' else gettext('No')
|
||||||
elif self.object.type == Question.TYPE_COUNTRYCODE:
|
elif self.object.type == Question.TYPE_COUNTRYCODE:
|
||||||
for a in qs:
|
for a in qs:
|
||||||
a['alink'] = a['answer']
|
a['alink'] = a['answer']
|
||||||
|
|||||||
Reference in New Issue
Block a user