Skip to content

Commit

Permalink
remove old adoption methods and crons
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 18, 2024
1 parent 2892b3f commit d97b976
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
31 changes: 0 additions & 31 deletions salesforce/management/commands/update_adopters.py

This file was deleted.

12 changes: 0 additions & 12 deletions salesforce/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,3 @@ def list(self, request):
data = {"Books": book_list}

return JsonResponse(data)


def get_adoption_status(request):
account = request.GET.get('id', False)

if account:
with Salesforce() as sf:
q = sf.query("SELECT Adoption_Status__c FROM Contact WHERE Accounts_ID__c = '{}'".format(account))

return JsonResponse(q)
else:
raise Http404('Must supply account id for adoption.')

0 comments on commit d97b976

Please sign in to comment.