Skip to content

Commit

Permalink
Merge pull request #105 from bento-platform/chore/ingest-validation
Browse files Browse the repository at this point in the history
chore(ingest): replace blank project/dataset IDs by null
  • Loading branch information
davidlougheed authored Apr 15, 2024
2 parents 5927783 + 1e1523f commit 4b3637c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chord_drs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ def object_ingest():

deduplicate: bool = str_to_bool(data.get("deduplicate", "true")) # Change for v0.9: default to True
obj_path: str | None = data.get("path")
project_id: str | None = data.get("project_id")
dataset_id: str | None = data.get("dataset_id")
data_type: str | None = data.get("data_type")
project_id: str | None = data.get("project_id") or None # replace blank strings with None
dataset_id: str | None = data.get("dataset_id") or None # "
data_type: str | None = data.get("data_type") or None # "
public: bool = data.get("public", "false").strip().lower() == "true"
file = request.files.get("file")

Expand Down

0 comments on commit 4b3637c

Please sign in to comment.