feat(chalice): fixed CH pagination
This commit is contained in:
parent
764fba5e8a
commit
a1cd4496d4
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ def search_sessions(data: schemas.SessionsSearchPayloadSchema, project_id, user_
|
|||
meta_keys = metadata.get(project_id=project_id)
|
||||
main_query = cur.format(f"""SELECT any(total) AS count, groupArray(%(sessions_limit)s)(details) AS sessions
|
||||
FROM (SELECT COUNT() OVER () AS total,
|
||||
rowNumberInAllBlocks() AS rn,
|
||||
rowNumberInAllBlocks()+1 AS rn,
|
||||
map({SESSION_PROJECTION_COLS_CH_MAP}) AS details
|
||||
{query_part}
|
||||
-- ORDER BY {sort} {data.order}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue