Skip to content

Commit

Permalink
Allow specifying multiple tags when ingesting from a CSV a file
Browse files Browse the repository at this point in the history
  • Loading branch information
brianaydemir committed May 10, 2024
1 parent 01934ab commit fbd9bd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions map-integration/macrostrat/map_integration/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,15 @@ def ingest_from_csv(
v = ctx.args[i + 1]
kwargs[k] = v

## Take into account the fact that we might be trying to
## set multiple tags.

if "tag" in kwargs and "," in kwargs["tag"]:
kwargs["tag"] = kwargs["tag"].split(",")

## Take into account the fact that we might be bulk ingesting
## multiple files/objects for the same slug.

kwargs["append_data"] = row["slug"] in slugs_seen
slugs_seen.append(row["slug"])

Expand Down

0 comments on commit fbd9bd8

Please sign in to comment.