Skip to content

Commit

Permalink
Fixed the pipeline info at the subject level
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanaem committed Oct 3, 2024
1 parent aace3cd commit 6cc67f8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/api/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ async def get(

subject_data["pipeline"] = subject_data.apply(
lambda row: {
name: versions
for name, versions in zip(
row["pipeline_name"], row["pipeline_version"]
name: list(
group.loc[
group["pipeline_name"] == name,
"pipeline_version",
].unique()
)
if pd.notna(name) and pd.notna(versions)
for name in set(row["pipeline_name"])
if pd.notna(name)
},
axis=1,
)
Expand Down

0 comments on commit 6cc67f8

Please sign in to comment.