Fixed missing first page of data in tasks API call.

This commit is contained in:
rocketdebris 2026-01-19 15:40:50 -05:00
parent 6ae6ae6812
commit 1429f68b9e

View file

@ -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 = {}