File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ def rfc_author_data(rfc, normalize = True):
59
59
if normalize :
60
60
affiliation = normalize_affiliation (affiliation )
61
61
62
+ if affiliation == "" :
63
+ affiliation = person .name
64
+
62
65
author = {
63
66
"id" : person .id ,
64
67
"country" : author .country ,
@@ -112,7 +115,21 @@ def rfc_authors_from_working_group(acr):
112
115
else :
113
116
print (f"No rfc data for { rfc } " )
114
117
115
- df = pd .DataFrame .from_records (author_records )
118
+ if len (author_records ) > 0 :
119
+ df = pd .DataFrame .from_records (author_records )
120
+ else :
121
+ # IRTF groups don't have their RFCs listed in the same way.
122
+ wg = dt .group_from_acronym (acr )
123
+ rfcs = dt .documents (group = wg , doctype = dt .document_type_from_slug ("rfc" ))
124
+
125
+ for rfc_doc in rfcs :
126
+ rfc = ri .rfc (rfc_doc .name .upper ())
127
+
128
+ rfc_data = rfc_author_data (rfc )
129
+ if rfc_data is not None :
130
+
131
+ authorship = authorship_from_rfc_data (rfc_data )
132
+ author_records .extend (authorship )
116
133
117
134
return df
118
135
@@ -268,4 +285,6 @@ def normalize_affiliation(affil):
268
285
if lookup is not None :
269
286
affil = lookup
270
287
288
+ affil = affil .strip () # in case there's an error there
289
+
271
290
return affil
You can’t perform that action at this time.
0 commit comments