HealthITAU / pyconnectwise

A library for simplifying interactions with the ConnectWise Manage API in Python
https://healthit.com.au
GNU General Public License v3.0
42 stars 7 forks source link

paginated tickets does not return expected records for original 'conditions' params #14

Closed imagenetmit closed 9 months ago

imagenetmit commented 9 months ago

When testing against the below code using paginated response, the first page returns the expected results, but subsequent calls to tickets.get_next_page() return pages starting at the oldest tickets in Connectwise.

params={
    'conditions':'id > 222000 and board/name="Help Desk"',
    'fields' : 'id,summary'
}
tickets = cw.service.tickets.paginated(1,10,params=params)

222000 222001 222002 ...

tickets.get_next_page()

1000 (oldest ticket) 1001 1002 ...

Yoshify commented 9 months ago

Hey! Thanks for flagging this - I've pushed a fix to resolve it. I'll be bumping the minor version.

Yoshify commented 9 months ago

0.4.7 is now live with this fix - please update and let me know how you go :)