Skip to content

Commit 11fe8d8

Browse files
committed
remove events use for shelterluv
1 parent 03daa73 commit 11fe8d8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/server/api/common_api.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,6 @@ def get_360(matching_id):
8181
animal_details_json = animal_details.json()
8282
adoptions.append(animal_details_json)
8383

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-
'''
10084
result['adoptions'] = adoptions
10185

10286
return jsonify({'result': result})

0 commit comments

Comments
 (0)