fix: load latest custom report instead of latest reference report

This commit is contained in:
thefalconx33 2020-01-03 15:08:59 +05:30
parent 0548a9c23a
commit db8c19ee52

View file

@ -229,8 +229,9 @@ def get_prepared_report_result(report, filters, dn="", user=None):
"status": "Completed",
"filters": json.dumps(filters),
"owner": user,
"report_name": report.report_name
}
"report_name": report.custom_report or report.report_name
},
order_by = 'creation desc'
)
if doc_list: