Skip to content

Commit

Permalink
Merge pull request #4 from FREVA-CLINT/intake_fix
Browse files Browse the repository at this point in the history
Fixes issues with the intake API
  • Loading branch information
Karinon authored Jan 29, 2024
2 parents 3224c3f + 9774092 commit 15fc336
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/databrowser/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,9 @@ async def _iterintake(self) -> AsyncIterator[str]:
_, results = res
for out in results.get("response", {}).get("docs", [{}]):
source = {
k: out[k]
k: out[k][0]
if isinstance(out.get(k), list) and len(out.get(k)) == 1
else out.get(k)
for k in [self.uniq_key] + self.translator.facet_hierachy
if out.get(k)
}
Expand Down

0 comments on commit 15fc336

Please sign in to comment.