File tree Expand file tree Collapse file tree
backend/connectors/nmbgmr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,18 +87,18 @@ def get_records(self):
8787 )
8888 if not config .sites_only :
8989 for site in sites :
90- # print(f"Obtaining well data for {site['properties']['point_id']}")
91- # well_data = self._execute_json_request(
92- # _make_url("wells"),
93- # params={"pointid": site["properties"]["point_id"]},
94- # tag="",
95- # )
96- # site["properties"]["formation"] = well_data["formation"]
97- # site["properties"]["well_depth"] = well_data["well_depth_ftbgs"]
98- # site["properties"]["well_depth_units"] = FEET
99- site ["properties" ]["formation" ] = None
100- site ["properties" ]["well_depth" ] = None
90+ print (f"Obtaining well data for { site ['properties' ]['point_id' ]} " )
91+ well_data = self ._execute_json_request (
92+ _make_url ("wells" ),
93+ params = {"pointid" : site ["properties" ]["point_id" ]},
94+ tag = "" ,
95+ )
96+ site ["properties" ]["formation" ] = well_data ["formation" ]
97+ site ["properties" ]["well_depth" ] = well_data ["well_depth_ftbgs" ]
10198 site ["properties" ]["well_depth_units" ] = FEET
99+ # site["properties"]["formation"] = None
100+ # site["properties"]["well_depth"] = None
101+ # site["properties"]["well_depth_units"] = FEET
102102
103103 return sites
104104
You can’t perform that action at this time.
0 commit comments