feat: add setup notebook and update env example for Athena
This commit is contained in:
@@ -27,7 +27,14 @@ def value_editor(
|
||||
a notes column. Returns the edited DataFrame; the caller is responsible
|
||||
for converting it back to value-row dicts and PUTting to Athena.
|
||||
"""
|
||||
fields = [f for f in fields if f.get("table") == table]
|
||||
fields = [
|
||||
f
|
||||
for f in fields
|
||||
if f.get("table") == table
|
||||
# Companion "<key>_initial" fields are edited via the Initial column
|
||||
# on their parent cost row, not as standalone rows.
|
||||
and not str(f.get("field_key", "")).endswith("_initial")
|
||||
]
|
||||
fields.sort(key=lambda f: int(f.get("sort_order") or 0))
|
||||
|
||||
by_key = {v.get("field_key"): v for v in values}
|
||||
|
||||
Reference in New Issue
Block a user