From 7aeaf35bf1a7938633435613af9bedd76d1b35bb Mon Sep 17 00:00:00 2001 From: Alexander Naumann Date: Wed, 11 Oct 2023 16:59:09 -0700 Subject: [PATCH] feat: add full conf name update --- src/tools/update_masterdata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/update_masterdata.py b/src/tools/update_masterdata.py index d1c6808cd48..0d39e8f4598 100644 --- a/src/tools/update_masterdata.py +++ b/src/tools/update_masterdata.py @@ -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,