Spaces:
Sleeping
Sleeping
Commit
·
99459d7
1
Parent(s):
661a3cb
imporve uploader
Browse files- api/router/book.py +2 -2
api/router/book.py
CHANGED
@@ -84,8 +84,8 @@ async def upload_file(
|
|
84 |
|
85 |
# Create a new Metadata object
|
86 |
book_query = BookQuery(user)
|
87 |
-
|
88 |
-
|
89 |
|
90 |
return {
|
91 |
"filename": file.filename,
|
|
|
84 |
|
85 |
# Create a new Metadata object
|
86 |
book_query = BookQuery(user)
|
87 |
+
book_query.add_book(db, title, author, category_id, year, publisher)
|
88 |
+
logging.info("Database Inserted")
|
89 |
|
90 |
return {
|
91 |
"filename": file.filename,
|