Skip to content

Commit

Permalink
limit to non-terminated partners
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 15, 2024
1 parent e0fa5f7 commit a123c5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salesforce/management/commands/update_partners.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def handle(self, *args, **options):
"Account__r.Id, " \
"Account__r.Partner_Anniversary_Date__c, " \
"Account__r.Partner_Status__c " \
"FROM Partner__c"
"FROM Partner__c " \
"WHERE Account__r.Partner_Status__c != 'Terminated'"
response = sf.query(query)
sf_marketplace_partners = response['records']

Expand Down

0 comments on commit a123c5e

Please sign in to comment.