example frequency/logdice shown.

This commit is contained in:
2020-02-03 06:18:51 +01:00
parent 437883701a
commit 599338a775
3 changed files with 9 additions and 6 deletions

View File

@@ -131,11 +131,11 @@ class View:
example_text_inner_tag = "span.example-text-{}".format(example.get_view_type())
example_content.append(h(example_text_inner_tag, {}, example.text()))
if "frequency" in example.other_attributes:
example_content.append(h("span.example-frequency", {}, example.other_attributes["frequency"]))
if "logDice" in example.other_attributes:
example_content.append(h("span.example-logdice", {}, example.other_attributes["logDice"]))
other_attributes = example.get_other_attributes()
if "frequency" in other_attributes:
example_content.append(h("span.example-frequency", {}, other_attributes["frequency"]))
if "logDice" in other_attributes:
example_content.append(h("span.example-logdice", {}, other_attributes["logDice"]))
parent_display = "inherit"
if not model.examples_shown and not example.is_multiword():