From 3927e8eba1b160fcac107aebbc1120364f840e41 Mon Sep 17 00:00:00 2001 From: salahangal Date: Sun, 23 Nov 2025 14:45:24 +0100 Subject: [PATCH] update ingestion chapters for other slugs --- hadith-ingestion/run-full-ingestion.sh | 8 ++++---- hadith-ingestion/src/api_clients/hadithapi_client.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hadith-ingestion/run-full-ingestion.sh b/hadith-ingestion/run-full-ingestion.sh index f292403..d3136f9 100755 --- a/hadith-ingestion/run-full-ingestion.sh +++ b/hadith-ingestion/run-full-ingestion.sh @@ -10,10 +10,10 @@ echo "=== Starting Full HadithAPI Ingestion ===" BOOKS=( # "sahih-bukhari" # "sahih-muslim" - # "abu-dawood" - "al-tirmidhi" - # "ibn-e-majah" - # "sunan-nasai" + "abu-dawood" + # "al-tirmidhi" + "ibn-e-majah" + "sunan-nasai" # "musnad-ahmad" # "al-silsila-sahiha" ) diff --git a/hadith-ingestion/src/api_clients/hadithapi_client.py b/hadith-ingestion/src/api_clients/hadithapi_client.py index 09b26b1..b60cc7a 100644 --- a/hadith-ingestion/src/api_clients/hadithapi_client.py +++ b/hadith-ingestion/src/api_clients/hadithapi_client.py @@ -265,7 +265,7 @@ class HadithAPIClient(BaseAPIClient): # Process each chapter for chapter in chapters: # 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') else: chapter_id = chapter.get('id')