v4
This commit is contained in:
parent
bd55899a1e
commit
bb2d8f0585
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -63,7 +63,7 @@ class Tools:
|
||||||
offset: int = 0,
|
offset: int = 0,
|
||||||
collection_id: Optional[str] = None,
|
collection_id: Optional[str] = None,
|
||||||
search: Optional[str] = None,
|
search: Optional[str] = None,
|
||||||
tags: Optional[str] = None,
|
labels: Optional[str] = None,
|
||||||
__user__: Optional[dict] = None
|
__user__: Optional[dict] = None
|
||||||
) -> str:
|
) -> str:
|
||||||
"""
|
"""
|
||||||
|
@ -74,7 +74,7 @@ class Tools:
|
||||||
offset: Number of bookmarks to skip (default: 0)
|
offset: Number of bookmarks to skip (default: 0)
|
||||||
collection_id: Filter by collection ID
|
collection_id: Filter by collection ID
|
||||||
search: Search query for bookmark titles/content
|
search: Search query for bookmark titles/content
|
||||||
tags: Comma-separated list of tags to filter by
|
labels: Comma-separated list of labels to filter by
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not self.valves.readeck_url or not self.valves.api_token:
|
if not self.valves.readeck_url or not self.valves.api_token:
|
||||||
|
@ -90,8 +90,8 @@ class Tools:
|
||||||
params["collection_id"] = collection_id
|
params["collection_id"] = collection_id
|
||||||
if search:
|
if search:
|
||||||
params["q"] = search
|
params["q"] = search
|
||||||
if tags:
|
if labels:
|
||||||
params["tags"] = tags
|
params["labels"] = labels
|
||||||
|
|
||||||
# Make request to Readeck API
|
# Make request to Readeck API
|
||||||
result = self._make_request("/bookmarks", params)
|
result = self._make_request("/bookmarks", params)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue