Skip to content

Commit

Permalink
if no school match, fine me a home
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Jan 24, 2025
1 parent aa43da4 commit 7e1c71f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salesforce/management/commands/sync_thank_you_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def handle(self, *args, **options):

if score > 99: # found a good match on school name, use that to populate related school in SF
account_id = school_list[best_match]
else:
capture_exception(Exception(f"Could not find a match for {school_string}"))
account_id = school_list["Find Me A Home"]

try:
response = sf.Thank_You_Note__c.create(
Expand Down

0 comments on commit 7e1c71f

Please sign in to comment.