Skip to content

Commit bec2a04

Browse files
committed
feat: add historic depth to water source in well notes
AMP indicated that the well depth source is the same as the historic depth to water source.
1 parent f4dd1ff commit bec2a04

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

api/well_inventory.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,19 @@ def _add_csv_row(session: Session, group: Group, model: WellInventoryRow, user)
487487
# --------------------
488488

489489
# add Thing
490+
"""
491+
Developer's note
492+
493+
Laila said that the depth source is almost always the source for the historic depth to water.
494+
She indicated that it would be acceptable to use the depth source for the historic depth to water source.
495+
"""
496+
if model.depth_source:
497+
historic_depth_to_water_source = model.depth_source.lower()
498+
else:
499+
historic_depth_to_water_source = "unknown"
500+
490501
if model.historic_depth_to_water_ft is not None:
491-
historic_depth_note = (
492-
f"Historic depth to water: {model.historic_depth_to_water_ft} ft"
493-
)
502+
historic_depth_note = f"historic depth to water: {model.historic_depth_to_water_ft} ft - source: {historic_depth_to_water_source}."
494503
else:
495504
historic_depth_note = None
496505

0 commit comments

Comments
 (0)