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

fixed "get_first_list_item" weren't available and not even fully impl… #44

Merged
merged 2 commits into from
Jun 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update pocketbase/services/utils/crud_service.py
made the implementation consistent with the JS implementation (thanks, @m29h)

Co-authored-by: Martin <mahe@quantentunnel.de>
Mahfoudh94 and m29h authored Jun 6, 2023
commit 9c293152d7cf07277f2e74bdd00c92bbaf46de37
2 changes: 1 addition & 1 deletion pocketbase/services/utils/crud_service.py
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ def get_list(
) -> ListResult:
return self._get_list(self.base_crud_path(), page, per_page, query_params)

def get_first_list_item(self, filter: str, query_params):
def get_first_list_item(self, filter: str, query_params={}):
"""
Returns the first found item by the specified filter.