vaphes / pocketbase

PocketBase client SDK for python
https://pypi.org/project/pocketbase/
MIT License
332 stars 38 forks source link

get_first_list_item Not Work #41

Closed bobwatcherx closed 1 year ago

bobwatcherx commented 1 year ago

i want to get list from collection but with certain filter field only . but even can't my code

comm = client.collection("comments_col").get_first_list_item('movie_id="1p5or83c14nb6j2')
                print(comm)

erorr 'RecordService' object has no attribute 'get_first_list_item'

Mahfoudh94 commented 1 year ago

As of exploring the code base, I found that in the place where get_first_list_item() should have been defined, there were _get_first_list_item() defined (see the _ in the beginning), which is a helper function from the base class, and based on the implementation I've seen, even the base class's function isn't completely implemented as it doesn't return anything, just some error raising after collecting some results. I have to download the project and do some of my testings and see if I can do a PR for this.