Skip to content

Commit

Permalink
throw some to-dos in for future self
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 24, 2024
1 parent af314f3 commit 236d37e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salesforce/management/commands/update_opportunities.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def handle(self, *args, **options):
response = sf.query_all(query)
records = response['records']

# TODO: this doesn't need to be updating on the opp id, the info never changes
for record in records:
opportunity, created = AdoptionOpportunityRecord.objects.update_or_create(
opportunity_id=record['Id'],
Expand All @@ -61,3 +62,6 @@ def handle(self, *args, **options):
}
)
opportunity.save()

# TODO: need to grab current adoptions and if the info has changed, update it so the user sees most recent adoption info
# re-submitting the form will update the current year adoption numbers, which the user might not expect

0 comments on commit 236d37e

Please sign in to comment.