Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
9084ba01
Commit
9084ba01
authored
Dec 06, 2022
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed paging
parent
58a7c32f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
cosmos_client.py
utils/cosmos_client.py
+2
-4
No files found.
utils/cosmos_client.py
View file @
9084ba01
...
...
@@ -117,12 +117,10 @@ class CosmosClient:
return
await
self
.
execute_blocking
(
bl
)
@staticmethod
def
get_next_page_bl
(
pager
):
def
get_next_page_bl
(
pager
)
->
List
[
Dict
[
any
,
any
]]
:
""" Get Next page items Blocking """
try
:
# todo(s1z): why do we get [0], as MS does? This is bad!!!
next_page
=
pager
.
next
()
return
get_first_or_none
(
list
(
next_page
),
list
())
return
list
(
pager
.
next
())
except
StopIteration
:
Log
.
e
(
TAG
,
"get_next_page_bl:: no items found, returning '[]'"
,
exc_info
=
sys
.
exc_info
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment