fix: data exporter throwing exception

This commit is contained in:
ruthra 2022-01-07 15:49:05 +05:30
parent b64cab6867
commit bf68f76405

View file

@ -314,7 +314,7 @@ class DataExporter:
.where(child_doctype_table.parentfield == c["parentfield"])
.orderby(child_doctype_table.idx)
)
for ci, child in enumerate(data_row.run()):
for ci, child in enumerate(data_row.run(as_dict=True)):
self.add_data_row(rows, c['doctype'], c['parentfield'], child, ci)
for row in rows: