Fixed missing first page of data in tasks API call.
This commit is contained in:
parent
6ae6ae6812
commit
1429f68b9e
1 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ def set_task_status(task_name, new_status):
|
|||
return build_success_response(f"Task {task_name} status updated to {new_status}.")
|
||||
except Exception as e:
|
||||
return build_error_response(str(e), 500)
|
||||
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_job_task_list(job_id=""):
|
||||
|
|
@ -61,10 +61,12 @@ def get_tasks_table_data(filters={}, sortings=[], page=1, page_size=10):
|
|||
fields=["*"],
|
||||
filters=processed_filters,
|
||||
limit=page_size,
|
||||
start=page * page_size,
|
||||
start=(page-1) * page_size,
|
||||
order_by=processed_sortings
|
||||
)
|
||||
|
||||
print("TASKS?", tasks, page, page_size)
|
||||
|
||||
tableRows = []
|
||||
for task in tasks:
|
||||
tableRow = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue