Skip to content

Commit 75cde3b

Browse files
committed
add properties for delta_urls_count and included_urls_count
1 parent d7208f7 commit 75cde3b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sde_collections/models/collection.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,16 @@ def add_to_public_query(self):
242242
def included_urls_count(self):
243243
return self.candidate_urls.filter(excluded=False).count()
244244

245+
@property
246+
def delta_urls_count(self):
247+
"""get the total number of delta urls"""
248+
return self.delta_urls.filter(excluded=False).count()
249+
250+
@property
251+
def included_curated_urls_count(self):
252+
"""get the number of included, curated urls"""
253+
return self.curated_urls.filter(excluded=False).count()
254+
245255
@property
246256
def _scraper_config_path(self) -> str:
247257
return f"sources/scrapers/{self.config_folder}/default.xml"

0 commit comments

Comments
 (0)