Skip to content

Commit

Permalink
Fixed author order error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruofeidu committed May 13, 2024
1 parent f0219c2 commit 1446160
Show file tree
Hide file tree
Showing 4 changed files with 10,228 additions and 10,227 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.avi
*.bib
*.txt
.DS_Store
!requirements.txt

# User-specific files
Expand Down
12 changes: 6 additions & 6 deletions DuSigchiParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def parse(filename_raw, data, indent=0, program='chi', year='2024'):
13269, 13341
]: # Check if the content is a paper or journal
paper_title = content['title']
authors = [
f"{person['firstName']} {person['lastName']}"
for person in data['people']
if person['id'] in
[author['personId'] for author in content['authors']]
]
authors = []
for author in content['authors']:
person = next((p for p in data['people'] if p['id'] == author['personId']), None)
if person:
author_name = f"{person['firstName']} {person['lastName']}"
authors.append(author_name)
abstract = content['abstract']
id = content['id']
link = f'https://programs.sigchi.org/{program}/{year}/program/content/{id}'
Expand Down
Loading

0 comments on commit 1446160

Please sign in to comment.