Fix templates
This commit is contained in:
parent
e7557054df
commit
5c8a037340
2 changed files with 4 additions and 1 deletions
|
@ -247,6 +247,9 @@ def get_answer_count(choice, obj, meta):
|
|||
if option.get("name") == choice:
|
||||
return option.get("replies", {}).get("totalItems", 0)
|
||||
|
||||
_logger.warning(f"invalid poll data {choice} {obj} {meta}")
|
||||
return 0
|
||||
|
||||
|
||||
@filters.app_template_filter()
|
||||
def get_total_answers_count(obj, meta):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue