Skip to content

Conversation

@crispzips
Copy link
Member

No description provided.

node_ids = set(display_subjects.copy())

if concept_or_geographic_subject_authority_ids:
concept_or_geographic_related_citation_ids = ACRelation.objects.filter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be initialized or line 42 will throw an error if this if is not executed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not sure what you mean by this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if concept_or_geographic_subject_authority_ids = False, then line 34 will not be executed and line 42 (if concept_or_geographic_related_citation_ids:) will throw and error because there is no variable concept_or_geographic_related_citation_ids.

.values_list("authority__id", flat=True)[:299]

if concept_or_geographic_related_authors:
display_subjects.update(concept_or_geographic_related_authors)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of the above code needs comments about what this is trying to achieve

@jdamerow jdamerow closed this Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants