yes-man-today commited on
Commit
fed77a8
·
1 Parent(s): 21c5194
Files changed (1) hide show
  1. regulatory_comments_api.py +2 -2
regulatory_comments_api.py CHANGED
@@ -130,8 +130,8 @@ class RegulationsDataFetcher:
130
  "comment_url": comment['links']['self'],
131
  "comment_date": comment['attributes']['postedDate'].split('T')[0],
132
  "comment_time": comment['attributes']['postedDate'].split('T')[1].strip('Z'),
133
- "commenter_fname": ((comment_data.get('firstName') or '').split(',')[0]).capitalize(),
134
- "commenter_lname": ((comment_data.get('lastName') or '').split(',')[0]).capitalize(),
135
  "comment_length": len(comment_text) if comment_text is not None else 0
136
  }
137
  nested_data["comments"].append(nested_comment)
 
130
  "comment_url": comment['links']['self'],
131
  "comment_date": comment['attributes']['postedDate'].split('T')[0],
132
  "comment_time": comment['attributes']['postedDate'].split('T')[1].strip('Z'),
133
+ "commenter_fname": ((comment_data.get('firstName') or 'Anonymous').split(',')[0]).capitalize(),
134
+ "commenter_lname": ((comment_data.get('lastName') or 'Anonymous').split(',')[0]).capitalize(),
135
  "comment_length": len(comment_text) if comment_text is not None else 0
136
  }
137
  nested_data["comments"].append(nested_comment)