Skip to content

Commit

Permalink
Add body
Browse files Browse the repository at this point in the history
  • Loading branch information
tarohi24 committed May 27, 2024
1 parent 2887906 commit c81b135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slide_generation/fetch_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def convert_issue_to_markdown(issue: dict) -> str | None:
sections_wo_metadata: list[MarkdownSection] = []
for section in sections:
if ('著者' in section.header) and (authors is None):
authors = body
authors = section.body
elif ('doi' in section.header.lower()) and (doi is None):
doi = body
doi = section.body
elif (('トラック' in section.header) or ('track' in section.header.lower())) and (track_name is None):
track_name = body
track_name = section.body
else:
sections_wo_metadata.append(section)
body = "\n\n".join([f"{section.header}\n{section.body}" for section in sections_wo_metadata])
Expand Down

0 comments on commit c81b135

Please sign in to comment.