Skip to content

Commit

Permalink
fix: fix accidentally skipped columns in get_workspace_data
Browse files Browse the repository at this point in the history
  • Loading branch information
DG-KFuglsang committed Oct 31, 2024
1 parent a8473a7 commit ba7bd50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/SAP/src/repositories/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ def get_workspace_data(user: str, token_info: Dict[str, str], workspace_id: str)
csv = ",".join(f'"{column}"' for column in authorized)
for sample in workspace["samples"]:
csv += "\n" + ",".join(
f'"{sample[column]}"' if sample[column] else ""
f'"{sample[column]}"' if column in sample and sample[column] else ""
for column in authorized
if column in sample
)

file = io.BytesIO(bytes(csv, "utf-8"))
Expand Down

0 comments on commit ba7bd50

Please sign in to comment.