Skip to content

Commit

Permalink
Merge pull request #69 from bento-platform/fixes/patch-dats-default
Browse files Browse the repository at this point in the history
Fixes/patch dats default
  • Loading branch information
gsfk authored Jan 23, 2024
2 parents 76dde0c + 5eec3f6 commit 580e44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento_beacon/endpoints/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def build_service_info():
# may be multiple datasets, so collect all descriptions into one string
# for custom description, add a "description" field to service info in beacon_config.json
k_datasets = katsu_datasets()
dats_array = list(map(lambda d: json.loads(d.get("datsFile", {})), k_datasets))
dats_array = list(map(lambda d: json.loads(d.get("datsFile", "{}")), k_datasets))
description = " ".join([d.get("description") for d in dats_array if "description" in d])
if description and service_info.get("description") is None:
service_info["description"] = description
Expand Down

0 comments on commit 580e44e

Please sign in to comment.