Skip to content

Commit

Permalink
Fix author names formatting in NIPS.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndPuQing committed Jan 27, 2024
1 parent 6391eab commit b361ce6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/app/app/source/NIPS.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def parse(response: HtmlResponse):
def post_parse(item: dict[str, Any]) -> dict[str, Any]:
if item["authors"] is not None:
item["authors"] = item["authors"].split(" · ")
for i, author in enumerate(item["authors"]):
item["authors"][i] = author.strip()
if item["authors"] is not None:
for i, author in enumerate(item["authors"]):
item["authors"][i] = author.strip()
return item


Expand Down

0 comments on commit b361ce6

Please sign in to comment.