Skip to content

Commit

Permalink
Merge pull request #214 from opaduchak/fix/ENG-7037
Browse files Browse the repository at this point in the history
[ENG-7037] Dataverse: "Load more" button
  • Loading branch information
adlius authored Jan 30, 2025
2 parents 20bcaf8 + 4392cfd commit 5411e14
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addon_imps/storage/dataverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def list_root_items(self, page_cursor: str = "") -> storage.ItemSampleResu
async with self.network.GET(
"api/mydata/retrieve",
query=[
["page", page_cursor],
["selected_page", page_cursor],
*[("role_ids", role) for role in range(1, 9)],
("dvobject_types", "Dataverse"),
*[
Expand Down Expand Up @@ -205,7 +205,11 @@ def parse_mydata(data: dict):
for file in data["items"]
],
total_count=data["total_count"],
next_sample_cursor=data["pagination"]["nextPageNumber"],
next_sample_cursor=(
data["pagination"]["nextPageNumber"]
if data["pagination"]["hasNextPageNumber"]
else None
),
)


Expand Down

0 comments on commit 5411e14

Please sign in to comment.