Skip to content

Commit

Permalink
db: Fix matching Publisher info w/ non-primary org-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
R2ZER0 committed Nov 12, 2024
1 parent 1da3bee commit d6b610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/db/management/commands/manage_entities_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def create_orgs_list(entity_type, output=sys.stdout):
db_publisher.prefix as "publisherPrefix"
FROM db_{entity_type}
LEFT OUTER JOIN additional_data_orginfocache on db_{entity_type}.org_id = additional_data_orginfocache.org_id
LEFT OUTER JOIN db_publisher on db_{entity_type}.org_id = db_publisher.org_id
LEFT OUTER JOIN db_publisher on db_{entity_type}.org_id = db_publisher.org_id OR db_publisher.org_id = ANY(db_{entity_type}.non_primary_org_ids)
"""

def parse_data_in_result(result, col_types):
Expand Down

0 comments on commit d6b610c

Please sign in to comment.