CoI updates and bugfixes

pull/1/head
Oliver Kennedy 2017-12-15 19:16:07 -05:00
parent e13b57577d
commit f7df8c0b99
3 changed files with 15 additions and 5 deletions

View File

@ -134,9 +134,16 @@
"email" : "vasudha.krishnaswamy@oracle.com"
},
"Wolfgang Gatterbauer" : {
"institution" : "Carnegie Mellon University",
"institution" : "Northeastern University",
"updated" : "2017",
"email" : "gatt@cmu.edu"
"email" : "gatterbauer@gmail.com",
"old" : [
{
"institution" : "Carnegie Mellon University",
"updated" : "2016",
"email" : "gatt@cmu.edu"
}
]
},
"Xing Niu" : {
"institution" : "Illinois Institute of Technology",

View File

@ -134,7 +134,7 @@ class NSFConflicts
f.puts("\t#{@my_data["name"]}\t#{@my_data["work"]["employer"]}")
f.puts("==== TABLE B ====")
full_details(advisors).each do |adv|
"G:\t#{render_name(adv)}\t#{adv["institution"]}\t#{adv["email"]}"
f.puts "G:\t#{render_name(adv)}\t#{adv["institution"]}\t#{adv["email"]}"
end
full_details((phd_students + phd_alumni).uniq.sort).each do |stud|
f.puts "T:\t#{render_name(stud)}\t#{stud["institution"]}\t#{stud["email"]}"

View File

@ -142,7 +142,10 @@ module Text
end
def split_name(name)
first, *last = name.split(/ +/)
[first, last.join(" ")]
parts = name.split(/ +/)
[
parts[0...-1].join(" "), # first name(s)
parts[-1] # last name
]
end
end