Skip to content

Commit

Permalink
Merge pull request #947 from NASA-IMPACT/946-fix-import-bug-in-collec…
Browse files Browse the repository at this point in the history
…tionspy

Fix circular import of the CandidateURL model
  • Loading branch information
code-geek authored Aug 16, 2024
2 parents f65c013 + 545e01b commit f271181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sde_collections/models/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
format_slack_message,
send_slack_message,
)
from .candidate_url import CandidateURL
from .collection_choice_fields import (
ConnectorChoices,
CurationStatusChoices,
Expand Down Expand Up @@ -111,7 +110,7 @@ def add_to_public_query(self):

@property
def included_urls_count(self):
return CandidateURL.objects.filter(collection=self, excluded=False).count()
return self.candidate_urls.filter(excluded=False).count()

@property
def _scraper_config_path(self) -> str:
Expand Down

0 comments on commit f271181

Please sign in to comment.