Skip to content
Snippets Groups Projects

<assignment-2.1>

Merged zshan2 requested to merge assignment-2.1 into master
9 files
+ 264
51
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 8
0
@@ -140,6 +140,14 @@ def put():
else:
print("Unknown command")
back_to_main_page()
if re.search("books", query):
if len(data) <= 1:
print("For posting multiple books, please input json file has more than 1 books\n")
main_page()
else:
if len(data) > 1:
print("Cannot post more than one book with 'post book/author', please use 'post books/authors'")
main_page()
result = API.put(query, data)
typer.echo(result)
print()
Loading