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
|
|
@ -61,10 +61,12 @@ def get_tasks_table_data(filters={}, sortings=[], page=1, page_size=10):
|
||||||
fields=["*"],
|
fields=["*"],
|
||||||
filters=processed_filters,
|
filters=processed_filters,
|
||||||
limit=page_size,
|
limit=page_size,
|
||||||
start=page * page_size,
|
start=(page-1) * page_size,
|
||||||
order_by=processed_sortings
|
order_by=processed_sortings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
print("TASKS?", tasks, page, page_size)
|
||||||
|
|
||||||
tableRows = []
|
tableRows = []
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
tableRow = {}
|
tableRow = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue