RussellJuma / PySuiteCRM

MIT License
10 stars 4 forks source link

Bug in line 218 #8

Open LittleDuke opened 1 year ago

LittleDuke commented 1 year ago

result = suitecrm.Contacts.get(last_name = 'Duccini', first_name = 'David')

Using as written on line 218:

            url = f'{url}[{field}][eq]={value}and&'

returns []

When I remove the "and" the function works as expected

            url = f'{url}[{field}][eq]={value}&'

It returns the record!

I suspect that Line 216 is also broken