[background-report] minor cleanup stage 2
This commit is contained in:
parent
0a68539c47
commit
d51f030676
2 changed files with 2 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ def generate_report_result(report, filters=None, user=None):
|
|||
# The JOB:
|
||||
try:
|
||||
res = frappe.get_attr(method_name)(frappe._dict(filters))
|
||||
except:
|
||||
except Exception:
|
||||
report.prepared_report = 1
|
||||
report.save()
|
||||
frappe.throw("The report to too long to load. Please reload the page to generate it in background.")
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ function get_url_arg(name) {
|
|||
function get_query_string(url) {
|
||||
if(url.includes("?")) {
|
||||
return url.slice(url.indexOf("?")+1);
|
||||
}
|
||||
else {
|
||||
}else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue