update ingestion chapters for other slugs

This commit is contained in:
salahangal 2025-11-23 14:45:24 +01:00
parent e60e5decdd
commit 3927e8eba1
2 changed files with 5 additions and 5 deletions

View File

@ -10,10 +10,10 @@ echo "=== Starting Full HadithAPI Ingestion ==="
BOOKS=( BOOKS=(
# "sahih-bukhari" # "sahih-bukhari"
# "sahih-muslim" # "sahih-muslim"
# "abu-dawood" "abu-dawood"
"al-tirmidhi" # "al-tirmidhi"
# "ibn-e-majah" "ibn-e-majah"
# "sunan-nasai" "sunan-nasai"
# "musnad-ahmad" # "musnad-ahmad"
# "al-silsila-sahiha" # "al-silsila-sahiha"
) )

View File

@ -265,7 +265,7 @@ class HadithAPIClient(BaseAPIClient):
# Process each chapter # Process each chapter
for chapter in chapters: for chapter in chapters:
# logger.warning("Processing chapter", chapter=chapter) # logger.warning("Processing chapter", chapter=chapter)
if book_slug in {'sahih-muslim','al-tirmidhi','al-silsila-sahiha','al-tirmidhi'}: if book_slug in {'sahih-muslim','al-tirmidhi','al-silsila-sahiha','abu-dawood','sunan-nasai','ibn-e-majah'}:
chapter_id = chapter.get('chapterNumber') chapter_id = chapter.get('chapterNumber')
else: else:
chapter_id = chapter.get('id') chapter_id = chapter.get('id')