mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-10 13:07:15 +00:00
feat(cli): return lib info after add folder
This commit is contained in:
parent
39887c827f
commit
9640e00d54
@ -116,6 +116,8 @@ def add_folder(library_id: int, folders: List[str]):
|
|||||||
)
|
)
|
||||||
if 200 <= response.status_code < 300:
|
if 200 <= response.status_code < 300:
|
||||||
print("Folders added successfully")
|
print("Folders added successfully")
|
||||||
|
library = response.json()
|
||||||
|
display_libraries([library])
|
||||||
else:
|
else:
|
||||||
print(f"Failed to add folders: {response.status_code} - {response.text}")
|
print(f"Failed to add folders: {response.status_code} - {response.text}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user