We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc35fb commit b7ce840Copy full SHA for b7ce840
backend/btrixcloud/colls.py
@@ -467,8 +467,17 @@ async def update_collection_counts_and_tags(self, collection_id: UUID):
467
files = crawl.files or []
468
for file in files:
469
total_size += file.size
470
- if crawl.stats:
471
- page_count += crawl.stats.done
+
+ try:
472
+ org = await self.orgs.get_org_by_id(crawl.oid)
473
+ _, crawl_pages = await self.page_ops.list_pages(
474
+ crawl.id, org, page_size=1_000_000
475
+ )
476
+ page_count += crawl_pages
477
+ # pylint: disable=broad-exception-caught
478
+ except Exception:
479
+ pass
480
481
if crawl.tags:
482
tags.extend(crawl.tags)
483
0 commit comments