AuthorBot commited on
Commit
29f9383
·
1 Parent(s): 1c77285

Fix: save buy_url during book upload so chatbot shows Buy button; remove nonexistent price field

Browse files
Files changed (1) hide show
  1. app/api/ingest.py +1 -0
app/api/ingest.py CHANGED
@@ -55,6 +55,7 @@ async def upload_book(
55
  "title": title or filename.rsplit(".", 1)[0],
56
  "genre": genre,
57
  "status": "processing",
 
58
  })
59
 
60
  # Save to temp dir so file-path-based services can access it
 
55
  "title": title or filename.rsplit(".", 1)[0],
56
  "genre": genre,
57
  "status": "processing",
58
+ "buy_url": buy_url or None,
59
  })
60
 
61
  # Save to temp dir so file-path-based services can access it