We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using list_articles() one would expect the following code to run without any errors:
list_articles()
api = AmcatAPI(**auth) articles = api.list_articles(project=pn, articleset=an, pk=[]) self.assertEqual(0, len(list(articles)))
However, leaving pk 'empty' results in filtering on no pk at all. This is unexpected behaviour.
@vanatteveldt How should we fix this, if at all?
The text was updated successfully, but these errors were encountered:
Easy fix is in amcatclient to remove non-True filters. If the behaviour is caused by rest_framework I don't think we need to fix it.
Sorry, something went wrong.
No branches or pull requests
When using
list_articles()
one would expect the following code to run without any errors:However, leaving pk 'empty' results in filtering on no pk at all. This is unexpected behaviour.
@vanatteveldt How should we fix this, if at all?
The text was updated successfully, but these errors were encountered: