Skip to content

Commit

Permalink
Fix the preview per page, #11117
Browse files Browse the repository at this point in the history
  • Loading branch information
njkim committed Aug 2, 2024
1 parent 17a9028 commit 4c71f40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arches/app/etl_modules/bulk_edit_concept.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ def get_preview_data(
query.add_query(search_url_query)
query.add_aggregation(nested_agg)

limit = settings.SEARCH_ITEMS_PER_PAGE
start = limit * int(page_index - 1)
start = preview_limit * int(page_index - 1)

results = query.search(index=RESOURCES_INDEX, start=start, limit=limit)
results = query.search(index=RESOURCES_INDEX, start=start, limit=preview_limit)
values = []
for hit in results["hits"]["hits"]:
resourceid = hit["_id"]
Expand Down

0 comments on commit 4c71f40

Please sign in to comment.