python-redmine icon indicating copy to clipboard operation
python-redmine copied to clipboard

filter error

Open strawberrylady99 opened this issue 1 year ago • 1 comments

when I code as this: res = redmine.project.get(20).issues.filter((1,1)) why errors: Traceback (most recent call last): File "D:\gitlab\test_proj\redmine_demo\update.py", line 23, in res = redmine.project.get(20).issues.filter((1,1)) TypeError: filter() takes 1 positional argument but 2 were given

strawberrylady99 avatar May 10 '24 13:05 strawberrylady99

Hi @strawberrylady99

It errors because you're using it wrong, see https://python-redmine.com/introduction.html#methods (filter() method).

Also, what exactly are you trying to achieve with filter((1,1)) ?

maxtepkeev avatar May 11 '24 07:05 maxtepkeev

Closing this due to inactivity.

maxtepkeev avatar Jul 06 '24 09:07 maxtepkeev