yes-man-today
commited on
Commit
·
ff81fc0
1
Parent(s):
fed77a8
agency update
Browse files
regulatory_comments_api.py
CHANGED
@@ -100,12 +100,9 @@ class RegulationsDataFetcher:
|
|
100 |
if docket_info is None:
|
101 |
return None
|
102 |
|
103 |
-
agency_id = self.docket_id[:3]
|
104 |
-
agency = "VA" if agency_id == "VA-" else agency_id
|
105 |
-
|
106 |
nested_data = {
|
107 |
"id": self.docket_id,
|
108 |
-
"agency":
|
109 |
"title": docket_info[1] if docket_info else "Unknown Title",
|
110 |
"update_date": docket_info[2].split('T')[0] if docket_info and docket_info[2] else "Unknown Update Date",
|
111 |
"update_time": docket_info[2].split('T')[1].strip('Z') if docket_info and docket_info[2] and 'T' in docket_info[2] else "Unknown Update Time",
|
|
|
100 |
if docket_info is None:
|
101 |
return None
|
102 |
|
|
|
|
|
|
|
103 |
nested_data = {
|
104 |
"id": self.docket_id,
|
105 |
+
"agency": self.docket_id.split('-')[0],
|
106 |
"title": docket_info[1] if docket_info else "Unknown Title",
|
107 |
"update_date": docket_info[2].split('T')[0] if docket_info and docket_info[2] else "Unknown Update Date",
|
108 |
"update_time": docket_info[2].split('T')[1].strip('Z') if docket_info and docket_info[2] and 'T' in docket_info[2] else "Unknown Update Time",
|