fix: check if filters are a dict
This commit is contained in:
parent
684f7715e7
commit
7e5f63da39
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ def generate_report_result(
|
|||
if cint(report.add_total_row) and result and not skip_total_row:
|
||||
result = add_total_row(result, columns, is_tree=is_tree, parent_field=parent_field)
|
||||
|
||||
translate_data = filters.get("translate_data")
|
||||
if isinstance(filters, dict):
|
||||
translate_data = filters.get("translate_data")
|
||||
if translate_data:
|
||||
result = translate_report_data(result)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue