Skip to content

Commit

Permalink
document pk-ish prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Jan 20, 2025
1 parent 559c23c commit c58504e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/con_duct/suite/ls.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def _flatten_dict(d, parent_key="", sep="."):
def _restrict_row(field_list, row):
restricted = OrderedDict()

Check warning on line 41 in src/con_duct/suite/ls.py

View check run for this annotation

Codecov / codecov/patch

src/con_duct/suite/ls.py#L41

Added line #L41 was not covered by tests
for k, v in row.items():
# output_paths.prefix is the unique key
if k in field_list or k == "output_paths.prefix":
restricted[k.split(".")[-1]] = v
return restricted

Check warning on line 46 in src/con_duct/suite/ls.py

View check run for this annotation

Codecov / codecov/patch

src/con_duct/suite/ls.py#L45-L46

Added lines #L45 - L46 were not covered by tests
Expand All @@ -63,6 +64,7 @@ def pyout_ls(run_data_list):
),
)
for row in run_data_list:
# moves to first column, which is unique key.
row.move_to_end("prefix", last=False)
table(row)

Check warning on line 69 in src/con_duct/suite/ls.py

View check run for this annotation

Codecov / codecov/patch

src/con_duct/suite/ls.py#L68-L69

Added lines #L68 - L69 were not covered by tests

Expand Down

0 comments on commit c58504e

Please sign in to comment.