File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 8
8
from django .dispatch import receiver
9
9
from model_utils import FieldTracker
10
10
from slugify import slugify
11
+ from django .db import models
12
+ from django .db .models import Q
11
13
12
14
from config_generation .db_to_xml import XmlEditor
13
15
17
19
format_slack_message ,
18
20
send_slack_message ,
19
21
)
22
+ from .candidate_url import CandidateURL
20
23
from .collection_choice_fields import (
21
24
ConnectorChoices ,
22
25
CurationStatusChoices ,
@@ -106,6 +109,10 @@ def add_to_public_query(self):
106
109
scraper_content = scraper_editor .update_config_xml ()
107
110
gh .create_or_update_file (query_path , scraper_content )
108
111
112
+ @property
113
+ def included_urls_count (self ):
114
+ return CandidateURL .objects .filter (collection = self , excluded = False ).count ()
115
+
109
116
@property
110
117
def _scraper_config_path (self ) -> str :
111
118
return f"sources/scrapers/{ self .config_folder } /default.xml"
You can’t perform that action at this time.
0 commit comments