update retrieving books

This commit is contained in:
salahangal 2025-11-17 13:59:07 +01:00
parent 737ac54c1b
commit 079735a81b
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ spec:
container: container:
image: axxs/hadith-ingestion:latest image: axxs/hadith-ingestion:latest
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: [python, /app/src/main_hadithapi.py] command: [python, /app/src/main_hadithapi.py]
args: args:
- "--book-slug={{inputs.parameters.book-slug}}" - "--book-slug={{inputs.parameters.book-slug}}"

View File

@ -142,7 +142,8 @@ class HadithAPIIngestionService:
# Get book mapping # Get book mapping
book_mapping = self.sync_books_from_api() book_mapping = self.sync_books_from_api()
logger.info("containing books", book_mapping=book_mapping)
logger.info("Book slugs", book_slug=book_slug)
if book_slug not in book_mapping: if book_slug not in book_mapping:
logger.error( logger.error(
"book_not_mapped", "book_not_mapped",