Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ComparisonFilter in InMemoryGateway and InMemorySyncGateway #82

Open
benvanbasten-ns opened this issue Jun 4, 2024 · 0 comments

Comments

@benvanbasten-ns
Copy link
Contributor

benvanbasten-ns commented Jun 4, 2024

Currently, ComparisonFilters (filters containing operators such as >) are not taken into account in the InMemoryGateways.

As the InMemoryGateways are mostly used for testing, these tests fail.

for x in self.data.values():
    for filter in filters:
        if x.get(filter.field) not in filter.values:  # THIS DOES NOT TAKE OPERATOR INTO ACCOUNT
            break
    else:
        result.append(deepcopy(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant