Skip to content

Commit 6821153

Browse files
jirhikerCopilot
andauthored
Update schemas/well_inventory.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a21f7f0 commit 6821153

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

schemas/well_inventory.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ def empty_str_to_none(v):
5050

5151

5252
def blank_to_none(v):
53-
if isinstance(v, str) and v.strip() == "":
54-
return None
55-
return v
53+
return empty_str_to_none(v)
5654

5755

5856
def owner_default(v):

0 commit comments

Comments
 (0)