We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c00a8 commit 1ee2ef0Copy full SHA for 1ee2ef0
src/server/api/common_api.py
@@ -78,7 +78,6 @@ def get_360(matching_id):
78
79
result['shifts'] = volgisticsshifts_results
80
81
-
82
if row["source_type"] == "shelterluvpeople":
83
adoptions = []
84
person = requests.get("http://shelterluv.com/api/v1/people/{}".format(row["source_id"]),
@@ -95,5 +94,8 @@ def get_360(matching_id):
95
94
adoptions.append(animal_details_json)
96
97
result['adoptions'] = adoptions
98
- result['adoptions_person_id'] = person_json["ID"]
+
+ if "ID" in person_json:
99
+ result['adoptions_person_id'] = person_json["ID"]
100
101
return jsonify({'result': result})
0 commit comments