Skip to content

Commit

Permalink
fix for getting biography abstract in case of multiple biographies re…
Browse files Browse the repository at this point in the history
…quested
  • Loading branch information
yoge1 committed Oct 20, 2023
1 parent 3fff3f3 commit 593b91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intavia_backend/main_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async def bulk_retrieve_biography_objects(
r_fin["text"] = r1.json()["text"]
elif "biotext" in r:
r_fin["text"] = r["biotext"]
if "bioAbstract" in res[0]:
if "bioAbstract" in r:
r2 = requests.get(r["bioAbstract"])
if r2.status_code == 200:
r_fin["abstract"] = r2.json()["text"]
Expand Down

0 comments on commit 593b91d

Please sign in to comment.