Restructuring API a little

This commit is contained in:
Cyber MacGeddon 2025-05-05 09:40:02 +01:00
parent 9a47915d05
commit c49568dd34
5 changed files with 191 additions and 108 deletions

View file

@ -14,9 +14,9 @@ default_user = "trustgraph"
def show_docs(url, user):
api = Api(url)
api = Api(url).library()
docs = api.library_get_documents(user=user)
docs = api.get_documents(user=user)
if len(docs) == 0:
print("No documents.")