Fixed Job Paging.
This commit is contained in:
parent
a3e77f1e40
commit
f8694cf8d4
@ -118,7 +118,7 @@ def get_jobs_table_data(filters={}, sortings=[], page=1, page_size=10):
|
||||
filters=processed_filters if not is_or else None,
|
||||
or_filters=processed_filters if is_or else None,
|
||||
limit=page_size,
|
||||
start=(page - 1) * page_size,
|
||||
start=page * page_size,
|
||||
order_by=processed_sortings
|
||||
)
|
||||
|
||||
|
||||
@ -285,9 +285,9 @@ class Api {
|
||||
for_table: true,
|
||||
};
|
||||
|
||||
console.log("DEBUG: API - Sending job options to backend:", options);
|
||||
console.log("DEBUG: API - Sending job options to backend:", page, pageSize, filters, sorting);
|
||||
|
||||
const result = await this.request(FRAPPE_GET_JOBS_METHOD, { options });
|
||||
const result = await this.request(FRAPPE_GET_JOBS_METHOD, { page, pageSize, filters, sorting});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user