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

limit parameter not working #300

Closed
KopylovVadik opened this issue May 30, 2022 · 1 comment
Closed

limit parameter not working #300

KopylovVadik opened this issue May 30, 2022 · 1 comment
Assignees
Labels

Comments

@KopylovVadik
Copy link

hi
I'm trying to get projects and their users.
it works with concrete id

        project = [values for values in self.entity.project_membership.filter(project_id=1037).values()]

but it does not work if you try to get several projects at once through the parameter limt like the picture below:
Снимок экрана 2022-05-30 в 14 21 21

@maxtepkeev maxtepkeev self-assigned this Dec 28, 2022
@maxtepkeev
Copy link
Owner

Hi, sorry that it took me so long to reply, basically it's not working because it's not supported by the underlying Redmine REST API, if you check the docs (https://python-redmine.com/resources/project_membership.html#all) you'll see that it says that all() method isn't supported, so in order to do what you want you'll have to get all project id's using redmine.project.all() and then with every project_id you need to make a request using redmine.project_membership.filter(project_id=X). That's the only way as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants