File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -81,22 +81,6 @@ def get_360(matching_id):
81
81
animal_details_json = animal_details .json ()
82
82
adoptions .append (animal_details_json )
83
83
84
- '''
85
- animal_events = requests.get("http://shelterluv.com/api/v1/animals/{}/events".format(animal_id),
86
- headers={"x-api-key": SHELTERLUV_SECRET_TOKEN})
87
- animal_events_json = animal_events.json()
88
- for event in animal_events_json["events"]:
89
- for adoption in event["AssociatedRecords"]:
90
- if adoption["Type"] == "Person" and adoption["Id"] == row["source_id"]:
91
- del event["AssociatedRecords"]
92
- animal_details = requests.get(
93
- "http://shelterluv.com/api/v1/animals/{}".format(animal_id),
94
- headers={"x-api-key": SHELTERLUV_SECRET_TOKEN})
95
-
96
- animal_details_json = animal_details.json()
97
- event["animal_details"] = animal_details_json
98
- adoptions.append(event)
99
- '''
100
84
result ['adoptions' ] = adoptions
101
85
102
86
return jsonify ({'result' : result })
You can’t perform that action at this time.
0 commit comments