Skip to content

Commit b52b8fc

Browse files
committed
Include resource_type and ingest_date in search record
1 parent e3f71eb commit b52b8fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aws/submit.py

+2
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def lambda_handler(event, context):
241241
metadata["mdf"]["source_name"] = source_name
242242
metadata["mdf"]["version"] = version
243243
metadata["mdf"]["domains"] = organization.domains
244+
metadata["mdf"]["resource_type"] = "dataset" # Force the resource type to make this findable in the portal
245+
metadata["mdf"]["ingest_date"] = datetime.utcnow().isoformat("T") + "Z"
244246

245247
# Fetch custom block descriptors, cast values to str, turn _description => _desc
246248
# @BenB edited

0 commit comments

Comments
 (0)