Skip to content

Commit

Permalink
feat: add full conf name update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-nau committed Oct 11, 2023
1 parent 086bca7 commit 7aeaf35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tools/update_masterdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ def update_master_data_from_conferences():
"sub": conf.get("sub", ""),
}
)
# todo update full name
else:
matches = [i for i in range(len(master_data)) if master_data[i]["title"].lower() == conf["title"].lower()]
if len(matches) == 1 and conf.get("full_name", "") != "":
match_idx = matches[0]
master_data[match_idx]["full_name"] = conf["full_name"]
save_csv(
csv_path_master_data,
master_data,
Expand Down

0 comments on commit 7aeaf35

Please sign in to comment.