update ingestion chapters for other slugs
This commit is contained in:
parent
e60e5decdd
commit
3927e8eba1
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue