Skip to content

Commit

Permalink
Merge pull request #237 from singnet/imp/issue-203-review-unit-tests
Browse files Browse the repository at this point in the history
[#203] AtomDB test refactoring and improvements
  • Loading branch information
eddiebrissow authored Oct 18, 2024
2 parents 1dce854 + 970a86c commit 266731c
Show file tree
Hide file tree
Showing 15 changed files with 1,759 additions and 2,106 deletions.
4 changes: 3 additions & 1 deletion hyperon_das_atomdb/adapters/redis_mongo_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,9 @@ def _retrieve_documents_by_index(
try:
# Fallback to previous version
conditionals = self._retrieve_custom_index(index_id)
if isinstance(conditionals, dict) and (c := conditionals.get("conditionals")):
if isinstance(conditionals, dict) and (
(c := conditionals.get("conditionals")) or c == {}
):
conditionals = c
if conditionals:
kwargs.update(conditionals)
Expand Down
Loading

0 comments on commit 266731c

Please sign in to comment.