mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
Collection management part 2 (#522)
* Plumb collection manager into librarian * Test end-to-end
This commit is contained in:
parent
d378db9370
commit
fcd15d1833
16 changed files with 617 additions and 434 deletions
|
|
@ -17,8 +17,9 @@ def list_collections(url, user, tag_filter):
|
|||
|
||||
collections = api.list_collections(user=user, tag_filter=tag_filter)
|
||||
|
||||
if len(collections) == 0:
|
||||
print("No collections.")
|
||||
# Handle None or empty collections
|
||||
if not collections or len(collections) == 0:
|
||||
print("No collections found.")
|
||||
return
|
||||
|
||||
table = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue