Skip to content

Commit

Permalink
[#159] store content location in discovery collection
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Jun 7, 2024
1 parent b8109ef commit 871fccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions triggers/update_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ async def watch_catalog(db: AsyncIOMotorClient):
submission: Submission = await Submission.find_one({"identifier": document["_id"]})
catalog_entry["registrationDate"] = submission.submitted
catalog_entry["name_for_sorting"] = str.lower(catalog_entry["name"])
catalog_entry["submission_type"] = submission.repository
# location of the dataset files e.g. AWS,GCP, Azure, Hydroshare, CUAHSI, etc.
catalog_entry["content_location"] = submission.content_location
await db["discovery"].find_one_and_replace(
{"_id": document["_id"]}, catalog_entry, upsert=True
)
Expand Down

0 comments on commit 871fccb

Please sign in to comment.