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=(
|
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"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue