Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions backend/connectors/nmose/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ def get_records(self, *args, **kw) -> List[Dict]:
# if config.end_date:
# params["endDt"] = config.end_dt.date().isoformat()

# The OSE POD FeatureServer was renamed from "OSE_PODs" to
# "OSE_Points_of_Diversion" (the old name now 400s "Invalid URL").
url: str = (
"https://services2.arcgis.com/qXZbWTdPDbTjl7Dy/arcgis/rest/services/OSE_PODs/FeatureServer/0/query"
"https://services2.arcgis.com/qXZbWTdPDbTjl7Dy/arcgis/rest/services/"
"OSE_Points_of_Diversion/FeatureServer/0/query"
)

params["where"] = "pod_status = 'ACT' AND pod_basin NOT IN ('SP', 'SD', 'LWD')"
params["outFields"] = (
"OBJECTID,pod_basin,pod_status,easting,northing,datum,utm_accura,status,county"
"OBJECTID,pod_basin,pod_status,easting,northing,datum,utm_accura,status,county,"
"pod_name,pod_nbr,pod_suffix,pod_file,depth_well,aquifer,elevation"
)

Expand Down
Loading
Loading